@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * Be warned, using the same groupSuffix with two different |
| 21 | 21 | * groups can cause collisions. |
| 22 | 22 | */ |
| 23 | - protected string|null $groupSuffix = null; |
|
| 23 | + protected string | null $groupSuffix = null; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * @var bool When set to true hydrator results will be cached for the |
@@ -48,14 +48,14 @@ discard block |
||
| 48 | 48 | * all hydrators will extract by reference. This overrides |
| 49 | 49 | * per-entity attribute configuration. |
| 50 | 50 | */ |
| 51 | - protected bool|null $globalByValue = null; |
|
| 51 | + protected bool | null $globalByValue = null; |
|
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * @var string|null When set, the entityPrefix will be removed from each |
| 55 | 55 | * type name. This simplifies type names and makes reading |
| 56 | 56 | * the GraphQL documentation easier. |
| 57 | 57 | */ |
| 58 | - protected string|null $entityPrefix = null; |
|
| 58 | + protected string | null $entityPrefix = null; |
|
| 59 | 59 | |
| 60 | 60 | /** @param mixed[] $config */ |
| 61 | 61 | public function __construct(array $config = []) |
@@ -82,14 +82,14 @@ discard block |
||
| 82 | 82 | return $this->group; |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - protected function setGroupSuffix(string|null $groupSuffix): self |
|
| 85 | + protected function setGroupSuffix(string | null $groupSuffix): self |
|
| 86 | 86 | { |
| 87 | 87 | $this->groupSuffix = $groupSuffix; |
| 88 | 88 | |
| 89 | 89 | return $this; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - public function getGroupSuffix(): string|null |
|
| 92 | + public function getGroupSuffix(): string | null |
|
| 93 | 93 | { |
| 94 | 94 | return $this->groupSuffix; |
| 95 | 95 | } |
@@ -144,26 +144,26 @@ discard block |
||
| 144 | 144 | return $this->globalIgnore; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | - protected function setGlobalByValue(bool|null $globalByValue): self |
|
| 147 | + protected function setGlobalByValue(bool | null $globalByValue): self |
|
| 148 | 148 | { |
| 149 | 149 | $this->globalByValue = $globalByValue; |
| 150 | 150 | |
| 151 | 151 | return $this; |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | - public function getGlobalByValue(): bool|null |
|
| 154 | + public function getGlobalByValue(): bool | null |
|
| 155 | 155 | { |
| 156 | 156 | return $this->globalByValue; |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | - protected function setEntityPrefix(string|null $entityPrefix): self |
|
| 159 | + protected function setEntityPrefix(string | null $entityPrefix): self |
|
| 160 | 160 | { |
| 161 | 161 | $this->entityPrefix = $entityPrefix; |
| 162 | 162 | |
| 163 | 163 | return $this; |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | - public function getEntityPrefix(): string|null |
|
| 166 | + public function getEntityPrefix(): string | null |
|
| 167 | 167 | { |
| 168 | 168 | return $this->entityPrefix; |
| 169 | 169 | } |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | public function __construct( |
| 14 | 14 | protected AbstractContainer $container, |
| 15 | - protected array|null $metadataConfig, |
|
| 15 | + protected array | null $metadataConfig, |
|
| 16 | 16 | ) { |
| 17 | 17 | } |
| 18 | 18 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | return parent::get($id); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - if (! isset($this->metadataConfig[$id])) { |
|
| 31 | + if (!isset($this->metadataConfig[$id])) { |
|
| 32 | 32 | throw new Error( |
| 33 | 33 | 'Entity ' . $id . ' is not mapped in the metadata', |
| 34 | 34 | ); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | return $this->build(Entity::class, $id, $this->metadataConfig[$id]); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - public function getMetadataConfig(): array|null |
|
| 40 | + public function getMetadataConfig(): array | null |
|
| 41 | 41 | { |
| 42 | 42 | return $this->metadataConfig; |
| 43 | 43 | } |