Update codestyle based on updated Symfony rules (#229)

This commit is contained in:
Christopher Hertel 2026-02-01 11:54:31 +01:00 • committed by GitHub
commit c081b90d74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ class HandlerResolverTest extends TestCase
{
public function testResolvesClosuresToReflectionFunction()
{
$closure = function (string $input): string {
$closure = static function (string $input): string {
return "processed: $input";
};
$resolved = HandlerResolver::resolve($closure);
@ -135,13 +135,13 @@ class HandlerResolverTest extends TestCase
public function testResolvesClosuresWithDifferentSignatures()
{
$noParams = function () {
$noParams = static function () {
return 'test';
};
$withParams = function (int $a, string $b = 'default') {
$withParams = static function (int $a, string $b = 'default') {
return $a.$b;
};
$variadic = function (...$args) {
$variadic = static function (...$args) {
return $args;
};
$this->assertInstanceOf(\ReflectionFunction::class, HandlerResolver::resolve($noParams));
@ -154,7 +154,7 @@ class HandlerResolverTest extends TestCase
public function testDistinguishesBetweenClosuresAndCallableArrays()
{
$closure = function () {
$closure = static function () {
return 'closure';
};
$array = [ValidHandlerClass::class, 'publicMethod'];