Skip to content

Commit b4d90d1

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 07b7948 commit b4d90d1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/CommandBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class CommandBuilder
2424
{
2525
/**
26-
* @param int|string|array<mixed>|mixed|null $args
26+
* @param null|int|string|array<mixed>|mixed $args
2727
*/
2828
public static function build(mixed $args): string
2929
{

src/CommandInvoker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(protected Connection $connection, protected ?StdoutL
3939
}
4040

4141
/**
42-
* @param int|string|array<mixed>|null $command
42+
* @param null|int|string|array<mixed> $command
4343
*/
4444
public function invoke(mixed $command, int $number): array
4545
{
@@ -84,7 +84,7 @@ public function ping(float $timeout = 1): string|bool
8484
*/
8585
protected function receive(Connection $connection): void
8686
{
87-
/** @var array|null $buffer */
87+
/** @var null|array $buffer */
8888
$buffer = null;
8989

9090
while (true) {

0 commit comments

Comments
 (0)