Skip to content
Snippets Groups Projects
Commit 2e8e7235 authored by nicxvan's avatar nicxvan
Browse files

Typing

parent 4d2da55a
No related branches found
No related tags found
No related merge requests found
......@@ -478,7 +478,7 @@ public function getImplementations($paths): array {
/**
* Checks for hooks which can't be supported in classes.
*
* @param \Drupal\Core\Hook\Hook $hook
* @param \Drupal\Core\Hook\Attribute\Hook $hook
* The hook to check.
* @param class-string $class
* The class the hook is implemented on.
......@@ -507,8 +507,8 @@ public static function checkForProceduralOnlyHooks(Hook $hook, string $class): v
* @param \ReflectionClass $reflectionClass
* A reflected class.
*
* @return array
* A list of Hook attribute instances.
* @return array<string, list<\Drupal\Core\Hook\HookOperation>>
* Lists of Hook attribute instances by method name.
*/
protected static function getAttributeInstances(\ReflectionClass $reflectionClass): array {
$attributes = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment