Releases: mglaman/phpstan-drupal
Releases · mglaman/phpstan-drupal
0.12.10
🐞 Bug fixes:
- #175: Fixes crashes on
GlobalDrupalDependencyInjectionRule
and autoloading when PHPUnit does not exist. Note: PHPStan still warns about autoloading and symbol discovery, still, but not crash.
- #136: Test modules weighted higher to avoid redeclares of existing functions #123.
🥳 Features:
- #174: Add dynamic file load support for module_load_include #166
0.12.9
#161 Fixes a type error in DrupalAutoloader on PHP 8
#157 Adds Drupal 9 testing support, including a workaround for PHPUnit 8 support (setUp(): void
)
Thank you to my sponsors that make these releases possible:
0.12.8
Use PHPUnit\Framework\Test interface instead of TestCase class [#160]
0.12.7
Releases PHPStan ^0.12.64, which includes a fix in PHP-Parser for optional attributes in traits.
See #152 for details.
0.12.6
- Update list of deprecated Drupal constants
- Allow \Drupal calls in traits and tests
- Fix autoloading of PhpunitCompatibilityTrait (#145)
0.12.5
#128 Adds a rule that fixes loading modules via \Drupal\Core\Extension\ModuleHandlerInterface::loadInclude
, which are normally skipped (as PHPStan only handles require
, etc.)
0.12.2
#106: Fix default drupal.drupal_root
parameter value
#107: PHPUnit tests run at PHPStan config level 4
#110: Fix type union for app.root
#111: Fix autoloading theme-settings.php files
0.12.1
Use the %currentWorkingDirectory%
container parameter to default the location detection of Drupal for the drupal.drupal_root
parameter, fixing #104