Skip to content

fix: add class properties for php deprecation - #83

Open
rhell4 wants to merge 1 commit into
masterfrom
fix-dynamic-property
Open

rhell4 wants to merge 1 commit into
masterfrom
fix-dynamic-property

Conversation

@rhell4

@rhell4 rhell4 commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

This is to conform with PHP dynamic properties being deprecated. Having the property as a class property and being unset when being constructed allows the magic __get function to still behave as expect.

It may look a little silly but this was the least invasive way to fix the deprecation. $_mh isn't declared in this commit as I added it in a previous commit, but that broke the __get lazy loading. Tested by copying a file to and from s3 with tool_dataflows.

This is to conform with PHP dynamic properties being deprecated.
Having the property as a class property and being unset when being
constructed allows the magic __get function to still behave as expect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant