You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?phpclassC1 { publicfunctiont1() {} }
classC2 { protectedfunctiont2() {} }
classC3 { privatefunctiont3() {} }
$method = new \ReflectionMethod(newclassextendsC1 {}, 't1'); // this is fine$method = new \ReflectionMethod(newclassextendsC2 {}, 't2'); // this is fine$method = new \ReflectionMethod(newclassextendsC3 {}, 't3'); // Fatal error: Uncaught ReflectionException: Method C3@anonymous::t3() does not exist
Resulted in this output:
Fatal error: Uncaught ReflectionException: Method C3@anonymous::t3() does not exist in /in/bJ2af:9
Stack trace:
#0 /in/bJ2af(9): ReflectionMethod->__construct(Object(C3@anonymous), 't3')
#1 {main}
thrown in /in/bJ2af on line 9
Process exited with code 255.
But I expected this output instead:
It happens only on master branch, 8.2.3 is not affected.
Description
The following code:
Resulted in this output:
But I expected this output instead:
It happens only on
master
branch, 8.2.3 is not affected.https://3v4l.org/bJ2af/rfc#vgit.master
PHP Version
master
Operating System
No response
The text was updated successfully, but these errors were encountered: