Implicitly nullable parameters deprecated
This commit is contained in:
parent
9e2c1c9bea
commit
3a6e857170
@ -14,7 +14,7 @@ class ClientNegotiator {
|
||||
|
||||
public function __construct(
|
||||
RequestFactoryInterface $requestFactory,
|
||||
PermessageDeflateOptions $perMessageDeflateOptions = null
|
||||
?PermessageDeflateOptions $perMessageDeflateOptions = null
|
||||
) {
|
||||
$this->verifier = new ResponseVerifier;
|
||||
$this->requestFactory = $requestFactory;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user