Skip to content

Commit ad7665d

Browse files
authored
chore(deps): update huangdijia/php-coding-standard to ^2.4 (#911)
* chore(deps): update huangdijia/php-coding-standard to ^2.4 Updates the PHP coding standard package from ^2.0 to ^2.4 to get the latest improvements and fixes. * style: apply PHP coding standard fixes after updating to ^2.4 Reorders union types to follow null-first convention and applies other code style improvements as required by the updated huangdijia/php-coding-standard package. This commit includes automatic fixes across multiple components: - Union type reordering (Type|null → null|Type) - Consistent formatting and style improvements - No functional changes, only code style compliance --------- Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>
1 parent b8e4766 commit ad7665d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

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)