Description
The following code:
https://3v4l.org/nurSR/rfc#vgitmaster
<?php
#[\AllowDynamicProperties]
class SegFault
{
}
$segFault = new SegFault();
$segFault->dynamicProp = 'dont call getHooks!';
$reflectionProperty = new ReflectionProperty($segFault, 'dynamicProp');
$reflectionProperty->getHooks();
Resulted in this output:
But I expected this output instead:
¯\_(ツ)_/¯
getHooks should return an empty array
perhaps throw an exception on a dynamic property
definitely not segFault
PHP Version
PHP 8.4 2024-09-03
Operating System
osx & 3v4l.org