Skip to content

Commit

Permalink
PHP 8.4: Implicitly nullable parameters deprecated
Browse files Browse the repository at this point in the history
Implicitly marking parameter $perMessageDeflateOptions as nullable is deprecated, the explicit nullable type must be used instead
  • Loading branch information
valzargaming authored Nov 21, 2024
1 parent 82760a7 commit 0d8bd94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handshake/ClientNegotiator.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ClientNegotiator {
*/
private $defaultHeader;

function __construct(PermessageDeflateOptions $perMessageDeflateOptions = null) {
function __construct(?PermessageDeflateOptions $perMessageDeflateOptions = null) {
$this->verifier = new ResponseVerifier;

$this->defaultHeader = new Request('GET', '', [
Expand Down

0 comments on commit 0d8bd94

Please sign in to comment.