Skip to content

Commit

Permalink
Implicitly nullable parameters deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
mbonneau committed Dec 5, 2024
1 parent 9e2c1c9 commit 3a6e857
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Handshake/ClientNegotiator.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ClientNegotiator {

public function __construct(
RequestFactoryInterface $requestFactory,
PermessageDeflateOptions $perMessageDeflateOptions = null
?PermessageDeflateOptions $perMessageDeflateOptions = null
) {
$this->verifier = new ResponseVerifier;
$this->requestFactory = $requestFactory;
Expand Down
2 changes: 1 addition & 1 deletion src/Messaging/Frame.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Frame implements FrameInterface {
* @param int $opcode
* @param callable<\UnderflowException> $ufExceptionFactory
*/
public function __construct(?string $payload = null, bool $final = true, int $opcode = 1, callable $ufExceptionFactory = null) {
public function __construct(?string $payload = null, bool $final = true, int $opcode = 1, ?callable $ufExceptionFactory = null) {
$this->ufeg = $ufExceptionFactory ?: static fn (string $msg = '') => new \UnderflowException($msg);

if (null === $payload) {
Expand Down

0 comments on commit 3a6e857

Please sign in to comment.