phpstan-drupal
phpstan-drupal copied to clipboard
Extension for PHPStan to allow analysis of Drupal code.
I am grappling with `PluginManagerSetsCacheBackendRule` giving the message "`` cache tag might be unclear and does not contain the cache key in it" As an example (and what I'm puzzling...
We don't need to run PHPCS in every test matrix job for PHP/Drupal versions testing
Fix Magic properties for FieldItemListInterface not detected #147
In my code I have something that boils down to the following statement: ```php /** @var \Drupal\node\NodeInterface $node */ $node->get('field_name')->value; ``` This results in the following error: `Access to an...
See https://www.drupal.org/project/commerce/issues/3118136#comment-13551571
See PR https://github.com/mglaman/drupal-check/pull/217
Loggers will break serialization if they're set from the LoggerFactory and not a defined logger channel service. Background: https://www.drupal.org/project/commerce/issues/3038430 You _can_ serialize a class in Drupal with a logger, but...
https://www.drupal.org/project/drupal/issues/2941757
Currently, to use this project and only do deprecation testing one would need to add the following to their phpstan.neon: ``` # Ignore phpstan-drupal extension's rules. ignoreErrors: - '#\Drupal calls...
Fixes #475 The EntityQueryType was getting cached in function scope for a `condition` call and because it wasn't handled by dynamic return it reused. So if you had `condition` before...