@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @param class-string|object $class |
23 | 23 | * @throws ReflectionException |
24 | 24 | */ |
25 | - public function hasAnnotation(string $name, string|object $class, string $method = null): bool |
|
25 | + public function hasAnnotation(string $name, string | object $class, string $method = null): bool |
|
26 | 26 | { |
27 | 27 | return count($this->getReflection($class, $method)->getAttributes($this->getClassName($name))) > 0; |
28 | 28 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * @param class-string|object $class |
32 | 32 | * @throws ReflectionException |
33 | 33 | */ |
34 | - public function getAnnotation(string $name, string|object $class, string $method = null): mixed |
|
34 | + public function getAnnotation(string $name, string | object $class, string $method = null): mixed |
|
35 | 35 | { |
36 | 36 | $attributes = $this->getReflection($class, $method)->getAttributes($this->getClassName($name)); |
37 | 37 | if (count($attributes) === 0) { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @param class-string|object $class |
52 | 52 | * @throws ReflectionException |
53 | 53 | */ |
54 | - private function getReflection(string|object $class, string $method = null): ReflectionClass|ReflectionMethod |
|
54 | + private function getReflection(string | object $class, string $method = null): ReflectionClass | ReflectionMethod |
|
55 | 55 | { |
56 | 56 | if ($method !== null) { |
57 | 57 | $reflection = new ReflectionMethod(is_object($class) ? get_class($class) : $class, $method); |