Skip to content

Commit 3a6e857

Browse files
committedDec 5, 2024·
Implicitly nullable parameters deprecated
1 parent 9e2c1c9 commit 3a6e857

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/Handshake/ClientNegotiator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ClientNegotiator {
1414

1515
public function __construct(
1616
RequestFactoryInterface $requestFactory,
17-
PermessageDeflateOptions $perMessageDeflateOptions = null
17+
?PermessageDeflateOptions $perMessageDeflateOptions = null
1818
) {
1919
$this->verifier = new ResponseVerifier;
2020
$this->requestFactory = $requestFactory;

‎src/Messaging/Frame.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Frame implements FrameInterface {
6767
* @param int $opcode
6868
* @param callable<\UnderflowException> $ufExceptionFactory
6969
*/
70-
public function __construct(?string $payload = null, bool $final = true, int $opcode = 1, callable $ufExceptionFactory = null) {
70+
public function __construct(?string $payload = null, bool $final = true, int $opcode = 1, ?callable $ufExceptionFactory = null) {
7171
$this->ufeg = $ufExceptionFactory ?: static fn (string $msg = '') => new \UnderflowException($msg);
7272

7373
if (null === $payload) {

0 commit comments

Comments
 (0)
Please sign in to comment.