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