misc: PHP type hint
This commit is contained in:
@@ -20,6 +20,7 @@ abstract class Action{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$args = array_slice($actionArgs, 1);
|
$args = array_slice($actionArgs, 1);
|
||||||
|
/** @var \ReflectionClass<Action> */
|
||||||
$ref = new \ReflectionClass($className);
|
$ref = new \ReflectionClass($className);
|
||||||
return $ref->newInstanceArgs($args);
|
return $ref->newInstanceArgs($args);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user