Skip to content

Commit fc4c94d

Browse files
committed
Standardize nullable type hints to 'null|Type' order
Refactors type hints and docblocks across the codebase to consistently use the 'null|Type' order for nullable types, improving code readability and alignment with modern PHP standards. No functional changes are introduced; this is a documentation and type annotation update only.
1 parent 51ee7be commit fc4c94d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/View/Components/Choice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Choice extends Component
2121
* @param string $question
2222
* @param array<array-key, string> $choices
2323
* @param mixed $default
24-
* @param mixed|null $attempts
24+
* @param null|mixed $attempts
2525
* @param mixed $multiple
2626
* @return mixed
2727
*/

src/View/Components/Task.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Task extends Component
2222
* Renders the component using the given arguments.
2323
*
2424
* @param string $description
25-
* @param (callable(): bool)|null $task
25+
* @param null|(callable(): bool) $task
2626
* @param int $verbosity
2727
*/
2828
public function render($description, $task = null, $verbosity = OutputInterface::VERBOSITY_NORMAL)

src/View/Components/TwoColumnDetail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TwoColumnDetail extends Component
1919
* Renders the component using the given arguments.
2020
*
2121
* @param string $first
22-
* @param string|null $second
22+
* @param null|string $second
2323
* @param int $verbosity
2424
*/
2525
public function render($first, $second = null, $verbosity = OutputInterface::VERBOSITY_NORMAL)

0 commit comments

Comments
 (0)