@@ -11,12 +11,12 @@ |
||
11 | 11 | */ |
12 | 12 | final class DummyEngine implements IAnnotationsReaderEngine |
13 | 13 | { |
14 | - public function hasAnnotation(string $name, string|object $class, string $method = null): bool |
|
14 | + public function hasAnnotation(string $name, string | object $class, string $method = null): bool |
|
15 | 15 | { |
16 | 16 | return true; |
17 | 17 | } |
18 | 18 | |
19 | - public function getAnnotation(string $name, string|object $class, string $method = null): mixed |
|
19 | + public function getAnnotation(string $name, string | object $class, string $method = null): mixed |
|
20 | 20 | { |
21 | 21 | return "abc"; |
22 | 22 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | /** |
100 | 100 | * Get name of a test suite |
101 | 101 | */ |
102 | - protected function getSuiteName(string|object|null $class = null): string |
|
102 | + protected function getSuiteName(string | object | null $class = null): string |
|
103 | 103 | { |
104 | 104 | $class = $class ?? static::class; |
105 | 105 | $annotation = $this->annotationsReader->getAnnotation(static::ANNOTATION_TEST_SUITE, $class); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * Get name for a job |
114 | 114 | */ |
115 | - protected function getJobName(string|object $class, string $method): string |
|
115 | + protected function getJobName(string | object $class, string $method): string |
|
116 | 116 | { |
117 | 117 | $annotation = $this->annotationsReader->getAnnotation(static::ANNOTATION_TEST, $class, $method); |
118 | 118 | if ($annotation !== null) { |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | /** @var callable Task */ |
22 | 22 | protected $callback; |
23 | 23 | public readonly array $params; |
24 | - protected bool|string $skip; |
|
24 | + protected bool | string $skip; |
|
25 | 25 | protected JobResult $result = JobResult::PASSED; |
26 | 26 | protected string $output = ""; |
27 | 27 | /** @var callable[] */ |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | string $name, |
32 | 32 | callable $callback, |
33 | 33 | array $params = [], |
34 | - bool|string $skip = false, |
|
34 | + bool | string $skip = false, |
|
35 | 35 | array $onAfterExecute = [] |
36 | 36 | ) { |
37 | 37 | $this->name = $name; |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | return $this->callback; |
47 | 47 | } |
48 | 48 | |
49 | - public function getSkip(): bool|string |
|
49 | + public function getSkip(): bool | string |
|
50 | 50 | { |
51 | 51 | return $this->skip; |
52 | 52 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | #[TestSuite("TestCase")] |
17 | 17 | final class TestCaseTest extends TestCase |
18 | 18 | { |
19 | - private int|bool $one = false; |
|
19 | + private int | bool $one = false; |
|
20 | 20 | |
21 | 21 | public function setUp(): void |
22 | 22 | { |
@@ -161,7 +161,7 @@ |
||
161 | 161 | $this->baseFileName = $baseFileName; |
162 | 162 | } |
163 | 163 | |
164 | - private function getElementLines(\ReflectionClass|\ReflectionFunctionAbstract $reflection, array $data): array |
|
164 | + private function getElementLines(\ReflectionClass | \ReflectionFunctionAbstract $reflection, array $data): array |
|
165 | 165 | { |
166 | 166 | return array_filter($data, function (int $line) use ($reflection) { |
167 | 167 | return ($line >= $reflection->getStartLine() && $line <= $reflection->getEndLine()); |