Description
https://3v4l.org/bKijA
While private magic method declarations result in a visibility warning, they still work when invoked by the engine as in the cases of __debugInfo
(and __sleep
since 8.1)
Private destructors however cause errors whenever an instance goes out of scope. The engine should always be able to invoke a destructor when destroying an instance.
PHP Version
8.4
Operating System
No response