<?php class MyClass { function myMethod() {} } class Foo extends ReflectionMethod { // Note: PHP never requires a child's constructor signature to match the parent's, so we don't need to sniff for that public function __construct() { parent::__construct('MyClass::myMethod'); } } $method = new Foo(); echo 'Signature 1 called in a child class, deprecated since 8.4: ' . $method->isPublic() . "\n"; class Bar extends Foo // 2 levels of inheritance { public function __construct() { parent::__construct(); } } $method = new Bar(); echo 'ReflectionMethod not called directly, triggers deprecation on Foo indirectly, checking Bar is out of scope for sniff: ' . $method->isPublic() . "\n";
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`