From b7e08038bbed3fca35105d518cb369a316e1c389 Mon Sep 17 00:00:00 2001 From: Micha Ahrweiler Date: Sat, 30 May 2026 17:09:58 +0200 Subject: [PATCH] [FrameworkBundle] Use static closure in front controller (8.1) (#1532) Added missing static for framework-bundle 8.1. --- symfony/framework-bundle/8.1/public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symfony/framework-bundle/8.1/public/index.php b/symfony/framework-bundle/8.1/public/index.php index 9982c218..c0037a8d 100644 --- a/symfony/framework-bundle/8.1/public/index.php +++ b/symfony/framework-bundle/8.1/public/index.php @@ -4,6 +4,6 @@ use App\Kernel; require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; -return function (array $context) { +return static function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); };