fix: resolve phpstan and rector deprecation warnings
Summary
Fixes PHPStan and Rector deprecation/config errors blocking CI, and applies all resulting Rector transformations.
PHPStan
src/Redirect.php: InjectEntityTypeManagerInterfaceinstead of storing the storage object (entityStoragePropertyAssignment).
Rector config
rector.php: Removed deprecated rules (CountArrayToEmptyArrayComparisonRector,DisallowedEmptyRuleFixerRector)rector.php: Replaced brokenDrupal9/10/11SetListconstants withDrupalSetProvider+withComposerBased(drupal: TRUE), fixing crashes from removed rector/rector constants (PHPUNIT_90,TWIG_24,SYMFONY_63)
Rector-applied code changes
- 17 test files: Added
#[RunTestsInSeparateProcesses]attribute (modernizing@runTestsInSeparateProcessesannotation) - 3 source files: Simplified double-negated boolean conditions via De Morgan's laws
- 2 files: Added
: intreturn type toREQUIREMENT_ERRORclosures
Edited by Stuart Clark