phpstan-drupal icon indicating copy to clipboard operation
phpstan-drupal copied to clipboard

Extension for PHPStan to allow analysis of Drupal code.

Results 161 phpstan-drupal issues
Sort by recently updated
recently updated
newest added

# Feature request Test against PHP 8.3 https://www.php.net/releases/8.3/en.php

enhancement

# Feature request If a site has written custom Drush commands using Drush 11 or lower, and they update to Drush 12, the drush.services.yml files are now deprecated as per...

enhancement
Drush

This is a follow-up issue of https://github.com/mglaman/phpstan-drupal/issues/486. As discussed there, we should replicate the AccessDeprecatedConstant rule to track known deprecated global drush constants. See https://github.com/mglaman/phpstan-drupal/blob/main/src/Rules/Deprecations/AccessDeprecatedConstant.php for the model class.

enhancement
Drush

# Feature request Torn between a bug report or a feature request, but the latter sounds more friendly... After the excellent work #592 landed in 1.1.37, we looked at dropping...

bug

The original test fixture structure was created in April 2019. A lot has changed since then. It'd be great to move items out of `tests/fixtures/drupal/modules/phpstan_fixtures` and into respective `tests/src/**/data/**` test...

This helps in cases when PHPStan is called outside of the main website location.

Drupal 9 is going away. It can remain in the test run, but should be considered the edge case and no longer the default.

# Feature request Various hacks are needed if `drupal/core` is in the vendor directory. The `drupal-finder` package doesn't support this (and probably shouldn't.) But we can in the autoloader: https://github.com/mglaman/phpstan-drupal/blob/main/src/Drupal/DrupalAutoloader.php#L60-L69...

enhancement