Skip to content

Releases: mglaman/phpstan-drupal

0.12.10

12 May 20:50
b8b6642
Compare
Choose a tag to compare

🐞 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

11 Mar 00:21
Compare
Choose a tag to compare

#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

05 Feb 01:41
7598084
Compare
Choose a tag to compare

Use PHPUnit\Framework\Test interface instead of TestCase class [#160]

0.12.7

21 Dec 13:46
9c53a7b
Compare
Choose a tag to compare

Releases PHPStan ^0.12.64, which includes a fix in PHP-Parser for optional attributes in traits.

See #152 for details.

0.12.6

09 Oct 14:17
cdc55c0
Compare
Choose a tag to compare
  • Update list of deprecated Drupal constants
  • Allow \Drupal calls in traits and tests
  • Fix autoloading of PhpunitCompatibilityTrait (#145)

0.12.5

26 Jul 17:13
f767648
Compare
Choose a tag to compare

#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.4

10 Jun 21:06
4a74b79
Compare
Choose a tag to compare

Fix #129 for phpstan 0.12.26.
Fix #125, #112

0.12.3

31 Mar 19:27
Compare
Choose a tag to compare

Fix for "Move deprecation of REQUEST_TIME to Drupal 10", https://www.drupal.org/node/3113284

0.12.2

27 Jan 20:06
bcd4ba1
Compare
Choose a tag to compare

#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

13 Jan 19:55
Compare
Choose a tag to compare

Use the %currentWorkingDirectory% container parameter to default the location detection of Drupal for the drupal.drupal_root parameter, fixing #104