Implicitly nullable parameters deprecated

This commit is contained in:
Matt Bonneau 2024-12-05 17:00:38 -05:00
parent 9e2c1c9bea
commit 3a6e857170
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class ClientNegotiator {
public function __construct(
RequestFactoryInterface $requestFactory,
PermessageDeflateOptions $perMessageDeflateOptions = null
?PermessageDeflateOptions $perMessageDeflateOptions = null
) {
$this->verifier = new ResponseVerifier;
$this->requestFactory = $requestFactory;

View File

@ -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) {