Closed i07 closed 1 year ago
But there shouldn't be any dynamic properties in the library... I am currently running 8.1.2 but I'll upgrade and will check. Thanks for the heads-up!
Thanks for checking!, just added the annotation to remove the deprecation warnings, I thought let's do a pull request with the annotation, so it's compatible with 8.2 for now, giving you ample time to refactor where needed. ;-) at least until php 9
well it wasn't Zebra_session; I actually had one dynamic property, the error was triggered from line 309 (session_start() in Zebra_Session.php), when session_deserialization happened, it tried to create the property. I mistakenly took that the property was created by Zebra_Session when it was actually my object that was the cause. Thank you for your quick response!
but.. after doing a little small project with just Zebra_Session , you do have two properties that are dynamic
Deprecated: Creation of dynamic property Zebra_Session::$security_code is deprecated in /Users/i07/Development/82test/vendor/stefangabos/zebra_session/Zebra_Session.php on line 282
Deprecated: Creation of dynamic property Zebra_Session::$session_lock is deprecated in /Users/i07/Development/82test/vendor/stefangabos/zebra_session/Zebra_Session.php on line 492
I had this fixed a while ago but didn't do a release - I was trying to find some time for more updates. I did release 4.0.0
now which you can get via composer
Awesome, that did it! , thank you Stefan
[\AllowDynamicProperties] annotation added, to remove deprecation warnings in php 8.2 and higher. This is not a solution but simply to allow dynamic properties for the Zebra_Session class in php 8.2 and higher.