It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
public function __invoke(ControllerContainer $container, $ann)
20
{
21
2
if(!$ann->parent){
22
Logger::debug("The annotation \"@{$ann->name} {$ann->description}\" of {$container->getClassName()} should be used with parent route");
23
return;
24
}
25
2
$target = $ann->parent->name;
26
2
$route = $container->getRoute($target);
27
2
if(!$route){
28
Logger::debug("The annotation \"@{$ann->name} {$ann->description}\" of {$container->getClassName()}::$target should be used with parent route");
29
return ;
30
}
31
2
$params = new AnnotationParams($ann->description, 2);
32
2
count($params)>0 or \PhpBoot\abort("The annotation \"@{$ann->name} {$ann->description}\" of {$container->getClassName()}::$target require at least one param, 0 given");
is_subclass_of($className, HookInterface::class) or \PhpBoot\abort("$className is not a HookInterface on the annotation \"@{$ann->name} {$ann->description}\" of {$container->getClassName()}::$target");
Due to PHP Bug #53727, is_subclass_of might return inconsistent results on some PHP versions if \PhpBoot\Controller\HookInterface::class can be an interface. If so, you could instead use ReflectionClass::implementsInterface.