@@ -15,7 +15,7 @@ |
||
| 15 | 15 | * |
| 16 | 16 | * @param class-string|object $object |
| 17 | 17 | */ |
| 18 | - public static function getShortClassName(object|string $object): string |
|
| 18 | + public static function getShortClassName(object | string $object): string |
|
| 19 | 19 | { |
| 20 | 20 | $reflect = new ReflectionClass($object); |
| 21 | 21 | |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | self::assertSame( |
| 168 | 168 | [ |
| 169 | 169 | 'privilege' => 'non-existing-privilege', |
| 170 | - 'allowed' => true, // True because allowed via the `null` wildcard |
|
| 170 | + 'allowed' => true, // True because allowed via the `null` wildcard |
|
| 171 | 171 | 'allowIf' => [], |
| 172 | 172 | 'denyIf' => [], |
| 173 | 173 | ], |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | /** |
| 52 | 52 | * @return ExecutionResult|ExecutionResult[] |
| 53 | 53 | */ |
| 54 | - public function execute(ServerRequestInterface $request): array|ExecutionResult |
|
| 54 | + public function execute(ServerRequestInterface $request): array | ExecutionResult |
|
| 55 | 55 | { |
| 56 | 56 | if (!$request->getParsedBody()) { |
| 57 | 57 | /** @var array $parsedBody */ |
@@ -21,5 +21,5 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Returns the user role. |
| 23 | 23 | */ |
| 24 | - public function getRole(): MultipleRoles|string; |
|
| 24 | + public function getRole(): MultipleRoles | string; |
|
| 25 | 25 | } |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | /** |
| 109 | 109 | * @param ExecutionResult|ExecutionResult[] $result |
| 110 | 110 | */ |
| 111 | - private function resultToArray(array|ExecutionResult $result): array |
|
| 111 | + private function resultToArray(array | ExecutionResult $result): array |
|
| 112 | 112 | { |
| 113 | 113 | if (is_array($result)) { |
| 114 | 114 | foreach ($result as &$one) { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | return parent::deny($roles, $resources, $privileges, $assert); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - private function storePrivileges(null|string|array|ResourceInterface $resource, null|string|array $privileges): void |
|
| 78 | + private function storePrivileges(null | string | array | ResourceInterface $resource, null | string | array $privileges): void |
|
| 79 | 79 | { |
| 80 | 80 | if (!is_array($resource)) { |
| 81 | 81 | $resource = [$resource]; |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | * |
| 185 | 185 | * @return array{privilege: null|string, allowed: bool, allowIf: string[], denyIf: string[]} |
| 186 | 186 | */ |
| 187 | - public function show(null|RoleInterface|string $role, null|ResourceInterface|string $resource, null|string $privilege): array |
|
| 187 | + public function show(null | RoleInterface | string $role, null | ResourceInterface | string $resource, null | string $privilege): array |
|
| 188 | 188 | { |
| 189 | 189 | $allowed = $this->isAllowed($role, $resource, $privilege); |
| 190 | 190 | sort($this->usedAllowAssertions); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | class NativeIn extends FunctionNode |
| 24 | 24 | { |
| 25 | - private string|Node $field; |
|
| 25 | + private string | Node $field; |
|
| 26 | 26 | |
| 27 | 27 | private Literal $nativeQuery; |
| 28 | 28 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | #[ORM\OneToMany(targetEntity: 'EcodevTests\Felix\Blog\Model\Post', mappedBy: 'user')] |
| 29 | 29 | private Collection $posts; |
| 30 | 30 | |
| 31 | - public function __construct(private MultipleRoles|string $role = 'member') |
|
| 31 | + public function __construct(private MultipleRoles | string $role = 'member') |
|
| 32 | 32 | { |
| 33 | 33 | } |
| 34 | 34 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $this->name = $name; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - public function getRole(): string|MultipleRoles |
|
| 45 | + public function getRole(): string | MultipleRoles |
|
| 46 | 46 | { |
| 47 | 47 | return $this->role; |
| 48 | 48 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | /** |
| 44 | 44 | * @dataProvider providerInputs |
| 45 | 45 | */ |
| 46 | - public function testSerialize(int $decimal, ?string $minimum, ?string $maximum, null|float|int|string $input): void |
|
| 46 | + public function testSerialize(int $decimal, ?string $minimum, ?string $maximum, null | float | int | string $input): void |
|
| 47 | 47 | { |
| 48 | 48 | $type = $this->createType($decimal, $minimum, $maximum); |
| 49 | 49 | $actual = $type->serialize($input); |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | /** |
| 54 | 54 | * @dataProvider providerInputs |
| 55 | 55 | */ |
| 56 | - public function testParseValue(int $decimal, ?string $minimum, ?string $maximum, null|float|int|string $input, ?string $expected): void |
|
| 56 | + public function testParseValue(int $decimal, ?string $minimum, ?string $maximum, null | float | int | string $input, ?string $expected): void |
|
| 57 | 57 | { |
| 58 | 58 | $type = $this->createType($decimal, $minimum, $maximum); |
| 59 | 59 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | /** |
| 70 | 70 | * @dataProvider providerInputs |
| 71 | 71 | */ |
| 72 | - public function testParseLiteral(int $decimal, ?string $minimum, ?string $maximum, null|float|int|string $input, ?string $expected): void |
|
| 72 | + public function testParseLiteral(int $decimal, ?string $minimum, ?string $maximum, null | float | int | string $input, ?string $expected): void |
|
| 73 | 73 | { |
| 74 | 74 | $type = $this->createType($decimal, $minimum, $maximum); |
| 75 | 75 | |