JSONRpc2 icon indicating copy to clipboard operation
JSONRpc2 copied to clipboard

PHP 8.2 - Server - fix (AllowDynamicProperties)

Open zabous opened this issue 2 years ago • 2 comments

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.

zabous avatar Apr 28 '23 07:04 zabous

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

scottchiefbaker avatar Apr 30 '23 03:04 scottchiefbaker

Are you sure that it is possible without changing usage?

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

zabous avatar Apr 30 '23 08:04 zabous