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

PHP 8.2 - Server - fix (AllowDynamicProperties) #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zabous
Copy link
Contributor

@zabous zabous commented Apr 28, 2023

PHP 8.2 introduces a new attribute in the global namespace named #[AllowDynamicProperties]. Classes declared with this attribute signals PHP to not emit any deprecation notices when setting dynamic properties on objects of that class.

PHP 8.2 introduces a new attribute in the global namespace named #[AllowDynamicProperties]. Classes declared with this attribute signals PHP to not emit any deprecation notices when setting dynamic properties on objects of that class.
@scottchiefbaker
Copy link
Collaborator

Is this the best way to solve this problem? Would it be better to modify the library to not use dynamic properties?

@zabous
Copy link
Contributor Author

zabous commented Apr 30, 2023

Are you sure that it is possible without changing usage?

  • $server->inst = new MyHandler;
  • $server->method1 = function(param1, param2,

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.

2 participants