Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: dynamic properties deprecation #22

Merged

Conversation

richardbrinkman
Copy link
Contributor

Since PHP 8.2 dynamic properties are deprecated. See https://www.php.net/manual/en/migration82.deprecated.php The send_or_fail function sets a greeting variable (which is not used anywhere) that is not a property of the Mail_smtp class.

schengawegga pushed a commit that referenced this pull request Dec 10, 2022
Since PHP 8.2 dynamic properties are deprecated. See
https://www.php.net/manual/en/migration82.deprecated.php
The send_or_fail function sets a greeting variable (which is
not used anywhere) that is not a property of the Mail_smtp class.
@schengawegga
Copy link
Collaborator

Merged. Thanks for your PR. I only changed the line length in the comment of the var declaration and the tabs into spaces on the indents. Thank you for your contribution.

@schengawegga schengawegga reopened this Dec 10, 2022
@schengawegga schengawegga reopened this Dec 10, 2022
schengawegga added a commit that referenced this pull request Dec 10, 2022
Editing line length of var $greetings comment an change tabs to spaces on indents
@schengawegga schengawegga merged commit 11b5eee into pear:master Dec 10, 2022
@richardbrinkman richardbrinkman deleted the dynamic_property_deprecation branch December 10, 2022 20:26
@richardbrinkman
Copy link
Contributor Author

@schengawegga , is there a release planned yet containing this merge request?

@schengawegga
Copy link
Collaborator

@richardbrinkman yes, I will plan a release, but I am very busy at the moment. And I want to test the PR well before I release an new version. So give me a little bit more time to test your PR. Thank you. I appreciate your effort in this project.

@schengawegga schengawegga added this to the 1.5.1 milestone Jan 6, 2023
@francescozanoni
Copy link

Hi.
Please be aware that other properties are dynamically created, such as $queued_as:
Creation of dynamic property Mail_smtp::$queued_as is deprecated
Thanks.

schengawegga added a commit to schengawegga/Mail that referenced this pull request Jul 11, 2023
Initialized several undefined variables and properties
Fix bug giving port to constructor in smtpmx.php
schengawegga added a commit to schengawegga/Mail that referenced this pull request Jul 11, 2023
Initialized several undefined variables and properties
Fix bug giving port to constructor in smtpmx.php
@schengawegga
Copy link
Collaborator

Hi. Please be aware that other properties are dynamically created, such as $queued_as: Creation of dynamic property Mail_smtp::$queued_as is deprecated Thanks.

Thanks for your hint.

schengawegga added a commit that referenced this pull request Aug 8, 2023
Initialized several undefined variables and properties
Fix bug giving port to constructor in smtpmx.php
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.

None yet

3 participants