diff --git a/Kununu/ArchitectureSniffer/Helper/ProjectPathResolver.php b/Kununu/ArchitectureSniffer/Helper/ProjectPathResolver.php index f087f74..b771e20 100644 --- a/Kununu/ArchitectureSniffer/Helper/ProjectPathResolver.php +++ b/Kununu/ArchitectureSniffer/Helper/ProjectPathResolver.php @@ -5,7 +5,7 @@ final readonly class ProjectPathResolver { - protected static function getProjectDirectory(): string + private static function getProjectDirectory(): string { $directory = dirname(__DIR__); diff --git a/composer.json b/composer.json index 018a54e..41d4625 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "friendsofphp/php-cs-fixer": "^3.75", "rector/rector": "^2.0", "squizlabs/php_codesniffer": "^3.10", - "symfony/yaml": "^6.4" + "symfony/yaml": "^6.4 || ^7.4" }, "require-dev": { "phpunit/phpunit": "^11.5" diff --git a/tests/Unit/Kununu/CsFixer/Command/CsFixerCommandTest.php b/tests/Unit/Kununu/CsFixer/Command/CsFixerCommandTest.php index fcb92eb..0c6ef34 100644 --- a/tests/Unit/Kununu/CsFixer/Command/CsFixerCommandTest.php +++ b/tests/Unit/Kununu/CsFixer/Command/CsFixerCommandTest.php @@ -44,7 +44,7 @@ public static function fixerCasesProvider(): array $cases = require $casesFile; - return array_map(fn($case) => [$case['before'], $case['after']], $cases); + return array_map(static fn($case) => [$case['before'], $case['after']], $cases); } private function contents(string $file): string diff --git a/tests/Unit/Kununu/CsFixer/_data/fixer_test_cases.php b/tests/Unit/Kununu/CsFixer/_data/fixer_test_cases.php index cbba18b..8080854 100644 --- a/tests/Unit/Kununu/CsFixer/_data/fixer_test_cases.php +++ b/tests/Unit/Kununu/CsFixer/_data/fixer_test_cases.php @@ -171,7 +171,7 @@ class FnSpacing { public function doStuff() { - $fn = function($x) { + $fn = static function($x) { return $x; };