Skip to content

Remove dynamic properties to remove PHP 8.2 deprecation warnings - #75

Merged
Ocramius merged 3 commits into
laminas:2.18.xfrom
adambalint-srg:fix-dynamic-properties
Nov 23, 2022
Merged

Remove dynamic properties to remove PHP 8.2 deprecation warnings#75
Ocramius merged 3 commits into
laminas:2.18.xfrom
adambalint-srg:fix-dynamic-properties

Conversation

@adambalint-srg

Copy link
Copy Markdown
Contributor

Signed-off-by: Ádám Bálint adam.balint@srg.hu

Q A
Documentation no
Bugfix yes
BC Break yes
New Feature no
RFC no
QA no

In PHP 8.2 dynamic properties will be deprecated. I found two dynamic properties, and as I see these properties aren't used, only set. I know that because of the dynamic declaration these properties will be public, so there is the possibility that someone uses these properties. This is why it can be BC break.
Or should I create these public properties in these classes?

…e classes

Signed-off-by: Ádám Bálint <adam.balint@srg.hu>
Comment thread src/Header/SetCookie.php
Signed-off-by: Ádám Bálint <adam.balint@srg.hu>
@Ocramius Ocramius added the Bug Something isn't working label Nov 23, 2022
@Ocramius Ocramius added this to the 2.18.0 milestone Nov 23, 2022
Signed-off-by: Ádám Bálint <adam.balint@srg.hu>

@Ocramius Ocramius left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adambalint-srg!

@Ocramius
Ocramius changed the base branch from 2.18.x to 2.17.x November 23, 2022 15:44
@Ocramius
Ocramius changed the base branch from 2.17.x to 2.18.x November 23, 2022 15:44
@Ocramius Ocramius assigned Ocramius and unassigned adambalint-srg Nov 23, 2022
@Ocramius Ocramius changed the title Remove dynamic properties Remove dynamic properties to remove PHP 8.2 deprecation warnings Nov 23, 2022
@Ocramius
Ocramius merged commit 76de900 into laminas:2.18.x Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants