From 724fc93313909f0fd439467800aa12d96217c8ee Mon Sep 17 00:00:00 2001 From: Oleh Korneliuk Date: Sat, 23 Nov 2024 13:48:11 +0300 Subject: [PATCH] Remove PHP 8.4 deprecation notice Deprecated: Spiral\RoadRunner\GRPC\Server::serve(): Implicitly marking parameter $worker as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/app/vendor/spiral/roadrunner-grpc/src/Server.php on line 102 Deprecated: Spiral\RoadRunner\GRPC\Server::serve(): Implicitly marking parameter $finalize as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/apps/vendor/spiral/roadrunner-grpc/src/Server.php on line 102 --- src/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.php b/src/Server.php index fe2c37c..6572ec4 100644 --- a/src/Server.php +++ b/src/Server.php @@ -99,7 +99,7 @@ private function workerError(WorkerInterface $worker, string $message): void /** * Serve GRPC over given RoadRunner worker. */ - public function serve(WorkerInterface $worker = null, callable $finalize = null): void + public function serve(?WorkerInterface $worker = null, ?callable $finalize = null): void { $worker ??= Worker::create();