From 229412af0eea896194d90e6da330f7ec24e98612 Mon Sep 17 00:00:00 2001 From: Pablo Zmdl Date: Tue, 2 Jun 2026 13:47:39 +0200 Subject: [PATCH] Fix return type spec This method always returns a closure, never null. Signed-off-by: Pablo Zmdl --- php/src/Controller/DockerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/src/Controller/DockerController.php b/php/src/Controller/DockerController.php index 73fcb19a..6deb03c6 100644 --- a/php/src/Controller/DockerController.php +++ b/php/src/Controller/DockerController.php @@ -439,7 +439,7 @@ readonly class DockerController { return $nonbufResp; } - private function getAddToStreamingResponseBody(Response $nonbufResp) : ?\Closure { + private function getAddToStreamingResponseBody(Response $nonbufResp) : \Closure { // Create a closure to pass around to the code, which should to the logging (because it e.g. decides // if it'll actually pull an image), but which should not need to know anything about the // wanted markup or formatting.