Update to PHPstan 2 and Rector 2 #1242
phpstan.yml
on: pull_request
Static analysis with PHPStan
16s
Annotations
10 errors and 1 warning
Static analysis with PHPStan:
config/drupal-10/drupal-10.0-deprecations.php#L15
Access to undefined constant Rector\Symfony\Set\TwigSetList::TWIG_240.
|
Static analysis with PHPStan:
config/drupal-9/drupal-9.0-deprecations.php#L21
Access to undefined constant Rector\Symfony\Set\TwigSetList::TWIG_240.
|
Static analysis with PHPStan:
src/Drupal8/Rector/Deprecation/FunctionalTestDefaultThemePropertyRector.php#L86
Calling PHPStan\Php\PhpVersionFactory::create() is not covered by backward compatibility promise. The method might change in a minor PHPStan version.
|
Static analysis with PHPStan:
src/Drupal8/Rector/Deprecation/FunctionalTestDefaultThemePropertyRector.php#L109
Although PHPStan\Reflection\Php\PhpPropertyReflection is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same.
|
Static analysis with PHPStan:
src/Rector/AbstractDrupalCoreRector.php#L109
Parameter #3 $args of method Rector\PhpParser\Node\NodeFactory::createStaticCall() expects array<PhpParser\Node>, array<int, PhpParser\Node\Expr\ArrowFunction|PhpParser\Node\Expr\ClassConstFetch|string> given.
|
Static analysis with PHPStan:
src/Utility/GetDeclaringSourceTrait.php (in context of class DrupalRector/Drupal9/Rector/Deprecation/AssertLegacyTraitRector)#L36
Although PHPStan\Reflection\Php\PhpMethodReflection is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same.
|
Static analysis with PHPStan:
src/Utility/GetDeclaringSourceTrait.php (in context of class DrupalRector/Drupal9/Rector/Deprecation/AssertNoFieldByNameRector)#L36
Although PHPStan\Reflection\Php\PhpMethodReflection is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same.
|
Static analysis with PHPStan:
src/Utility/GetDeclaringSourceTrait.php (in context of class DrupalRector/Drupal9/Rector/Deprecation/AssertNoUniqueTextRector)#L36
Although PHPStan\Reflection\Php\PhpMethodReflection is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same.
|
Static analysis with PHPStan:
src/Utility/GetDeclaringSourceTrait.php (in context of class DrupalRector/Drupal9/Rector/Deprecation/ConstructFieldXpathRector)#L36
Although PHPStan\Reflection\Php\PhpMethodReflection is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same.
|
Static analysis with PHPStan:
src/Utility/GetDeclaringSourceTrait.php (in context of class DrupalRector/Drupal9/Rector/Deprecation/FromUriRector)#L36
Although PHPStan\Reflection\Php\PhpMethodReflection is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same.
|
Static analysis with PHPStan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|