From 9462d2060e1bed58ab70d5493b688377a54d43b2 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Mon, 3 Mar 2025 23:12:09 +0100 Subject: [PATCH] php-cs-fixer: Disable incompatible rules The `modernize_strpos` rule was disabled in 648d8c605b21c54fbcd395354181ed1b044cc664 on master. We do not need to care about `no_null_property_initialization` since we are stuck on PHP-CS-Fixer 2. Also disable `get_class_to_class_keyword`, which is not an issue on master since the `get_class` was removed in b580cf216d9001f82c866bb9a6c8bcad1cc862d8. --- .php-cs-fixer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 93f51fe..e99221a 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -30,6 +30,10 @@ return (new PhpCsFixer\Config()) 'no_null_property_initialization' => false, // Pulled in by @Symfony with `const` but const visibility requires PHP ≥ 7.1 'visibility_required' => ['elements' => ['method', 'property']], + // Pulled in by @Symfony:risky but we still support PHP ≤ 7.4 + 'modernize_strpos' => false, + // Enabled by @Symfony:risky but requires PHP 8. + 'get_class_to_class_keyword' => false, ]) ->setFinder($finder) ;