<?php final class SkipUsedByReflectionAsArrayCallable { public function run(): int { $reflectionMethod = new \ReflectionMethod(...[$this, 'methodInjection']); return $reflectionMethod->getNumberOfParameters(); } private function methodInjection(\stdClass $contextArgument): void { } } $obj = new SkipUsedByReflectionAsArrayCallable(); echo $obj->run();
You have javascript disabled. You will not be able to edit any code.