From f681caca3598674491f5a67d3f4fb753ec33edc7 Mon Sep 17 00:00:00 2001 From: Dillard Blom Date: Tue, 7 Jul 2026 21:25:56 +0200 Subject: [PATCH] Fix OccOutput::fetch() return type for PHP 8.1+ compatibility BufferedOutput::fetch() declares a string return type in Symfony 5+. PHP 8.1 enforces return type compatibility with parent methods, causing a fatal 500 error when the occweb page loads. Fix: add ': string' return type to OccOutput::fetch(). Co-Authored-By: Claude Sonnet 4.6 --- lib/Controller/OccOutput.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/OccOutput.php b/lib/Controller/OccOutput.php index 0ceff97..4afe826 100644 --- a/lib/Controller/OccOutput.php +++ b/lib/Controller/OccOutput.php @@ -35,7 +35,7 @@ class OccOutput extends BufferedOutput implements ConsoleOutputInterface ); } - public function fetch() + public function fetch(): string { // Получаем основной буфер $content = parent::fetch();