Skip to content

Commit 7b53c19

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 2d087d6 commit 7b53c19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PipeMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function handle(): void
4242
/**
4343
* @template T
4444
* @param class-string<T> $class
45-
* @return T|null
45+
* @return null|T
4646
*/
4747
private function get(string $class)
4848
{

src/Sender.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function setResponse(int $fd, mixed $response): void
124124
}
125125

126126
/**
127-
* @return Response|ServerConnection|null
127+
* @return null|Response|ServerConnection
128128
*/
129129
public function getResponse(int $fd): mixed
130130
{

0 commit comments

Comments
 (0)