php-cs-fixer: Disable incompatible rules

The `modernize_strpos` rule was disabled in 648d8c605b 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 b580cf216d.
pull/101/head
Jan Tojnar 1 year ago
parent 487ce3a517
commit 9462d2060e
  1. 4
      .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)
;

Loading…
Cancel
Save