Skip to content

Commit 8e08ae3

Browse files
committed
[CS] Enforces null type hint on last position in phpDocs
1 parent d928358 commit 8e08ae3

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

ExecutionContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ExecutionContext implements ExecutionContextInterface
4141
*
4242
* @param GlobalExecutionContextInterface $globalContext The global context storing node-independent state
4343
* @param TranslatorInterface $translator The translator for translating violation messages
44-
* @param null|string $translationDomain The domain of the validation messages
44+
* @param string|null $translationDomain The domain of the validation messages
4545
* @param MetadataInterface $metadata The metadata of the validated node
4646
* @param mixed $value The value of the validated node
4747
* @param string $group The current validation group
@@ -255,7 +255,7 @@ private function executeConstraintValidators($value, array $constraints)
255255
/**
256256
* Returns an array of group names.
257257
*
258-
* @param null|string|string[] $groups The groups to resolve. If a single string is
258+
* @param string|string[]|null $groups The groups to resolve. If a single string is
259259
* passed, it is converted to an array. If null
260260
* is passed, an array containing the current
261261
* group of the context is returned.

ExecutionContextInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function addViolationAt($subPath, $message, array $parameters = array(),
134134
*
135135
* @param mixed $value The value to validate
136136
* @param string $subPath The path to append to the context's property path
137-
* @param null|string|string[] $groups The groups to validate in. If you don't pass any
137+
* @param string|string[]|null $groups The groups to validate in. If you don't pass any
138138
* groups here, the current group of the context
139139
* will be used.
140140
* @param bool $traverse Whether to traverse the value if it is an array
@@ -166,7 +166,7 @@ public function validate($value, $subPath = '', $groups = null, $traverse = fals
166166
* @param mixed $value The value to validate
167167
* @param Constraint|Constraint[] $constraints The constraint(s) to validate against
168168
* @param string $subPath The path to append to the context's property path
169-
* @param null|string|string[] $groups The groups to validate in. If you don't pass any
169+
* @param string|string[]|null $groups The groups to validate in. If you don't pass any
170170
* groups here, the current group of the context
171171
* will be used.
172172
*

Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ private function createVisitor($root)
197197
}
198198

199199
/**
200-
* @param null|string|string[] $groups
200+
* @param string|string[]|null $groups
201201
*
202202
* @return string[]
203203
*/

ValidatorBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class ValidatorBuilder implements ValidatorBuilderInterface
7070
private $translator;
7171

7272
/**
73-
* @var null|string
73+
* @var string|null
7474
*/
7575
private $translationDomain;
7676

0 commit comments

Comments
 (0)