From 91788ffffed2fafebff63582170c3c9c6e168192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Nowak?= Date: Tue, 22 Sep 2026 08:26:49 +0200 Subject: [PATCH] IBX-12654: Fixed dynamic calls to static methods --- tests/lib/Component/ControllerComponentTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/lib/Component/ControllerComponentTest.php b/tests/lib/Component/ControllerComponentTest.php index b3490bb..3938c4e 100644 --- a/tests/lib/Component/ControllerComponentTest.php +++ b/tests/lib/Component/ControllerComponentTest.php @@ -33,9 +33,9 @@ public function testRenderReturnsSubRequestResponseContent(): void $httpKernel ->expects(self::once()) ->method('handle') - ->with(self::callback(function (Request $subRequest): bool { - $this->assertSame('App\Controller\SomeController', $subRequest->attributes->get('_controller')); - $this->assertSame('bar', $subRequest->attributes->get('foo')); + ->with(self::callback(static function (Request $subRequest): bool { + self::assertSame('App\Controller\SomeController', $subRequest->attributes->get('_controller')); + self::assertSame('bar', $subRequest->attributes->get('foo')); return true; }))