@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * @param string|int $offset |
42 | 42 | * @return ParameterInterface|null |
43 | 43 | */ |
44 | - public function offsetGet($offset):? ParameterInterface |
|
44 | + public function offsetGet($offset): ? ParameterInterface |
|
45 | 45 | { |
46 | 46 | if (gettype($offset) === 'string') { |
47 | 47 | $offset = $this->getOffsetFromName($offset); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * @param string $name |
95 | 95 | * @return int|null |
96 | 96 | */ |
97 | - protected function getOffsetFromName(string $name):? int |
|
97 | + protected function getOffsetFromName(string $name): ? int |
|
98 | 98 | { |
99 | 99 | foreach ($this as $key => $parameter) { |
100 | 100 | if ($parameter->getName() === $name) { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * @return array|null |
43 | 43 | * @throws RuntimeException |
44 | 44 | */ |
45 | - public function serializeParameterBag(VisitorInterface $visitor, ? ParameterBag $data, array $type, Context $context):? array |
|
45 | + public function serializeParameterBag(VisitorInterface $visitor, ? ParameterBag $data, array $type, Context $context): ? array |
|
46 | 46 | { |
47 | 47 | $result = []; |
48 | 48 | if ($data === null) { |