Skip to content

Releases: mglaman/phpstan-drupal

1.1.10

26 Jan 22:01
d18007f
Compare
Choose a tag to compare

What's Changed

  • Proper return type for config entity queries by @mglaman in #309
  • Exclude InstallerExistingConfigTestBase from $defaultTheme rule by @mglaman in #312
  • Allow non-callable in #lazy_builder if array_intersect_key by @mglaman in #313

Full Changelog: 1.1.9...1.1.10

1.1.9

17 Jan 15:58
74b356d
Compare
Choose a tag to compare

This relaxes the constraints so that phpstan-drupal can be installed on the Drupal 10.0.x branch.

What's Changed

Full Changelog: 1.1.8...1.1.9

1.1.8

12 Jan 22:53
62d9979
Compare
Choose a tag to compare

RenderCallbackRule Improvements

The RenderCallbackRule added in 1.1.5 had various flaws. This release should fix them:

  • Improper analysis of #access_callback – not an array, single callable.
  • Improper analysis of #lazy_builder – an array, but of call_user_func_array values ([callable, args])
  • service_name:method style callbacks were not parsed, now they are

What's Changed

  • Calling getStorage with a constant does not resolve entity mapped storage class by @dpi in #300
  • Handle controller notation for callbacks by @mglaman in #302
  • Fix #lazy_builder callback analysis and static::class concatenation warning by @mglaman in #304

New Contributors

  • @dpi made their first contribution in #300

Full Changelog: 1.1.7...1.1.8

1.1.7

10 Jan 14:00
2d7cc0f
Compare
Choose a tag to compare

What's Changed

  • Remove nette/finder for symfony/finder (reusing Drupal dependencies) by @alexpott in #297

Full Changelog: 1.1.6...1.1.7

1.1.6

06 Jan 12:29
c034337
Compare
Choose a tag to compare

Hotfix.

What's Changed

Full Changelog: 1.1.5...1.1.6

1.1.5

05 Jan 22:49
82c0c89
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.1.4...1.1.5

1.1.4

29 Dec 22:29
f51ff1a
Compare
Choose a tag to compare

What's Changed

  • Add phpstan prophecy suggestion by @ptt-homme in #282
  • Add phpstan/phpstan-phpunit to the suggested packages list by @ptt-homme in #283
  • Add documentation for contrib entity mapping by @mglaman in #285
  • Add tips to the extends internal class rule errors by @mglaman in #286
  • Add return type extensions for AccessResult methods by @mglaman in #287

Full Changelog: 1.1.3...1.1.4

1.1.3

22 Dec 22:18
76d9e0b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.1.2...1.1.3

1.1.2

15 Dec 22:16
fecdf4c
Compare
Choose a tag to compare

Highlights

With #264 we have added the ability to look up discovered extensions, which should greatly improve the rules which load files called by module_load_include and ModuleHandlerInterface::loadInclude. Previously these two rules had to re-scan for extensions whenever the function or method was analyzed.

What's Changed

  • Fail to map a service with a parent which overrides its parent too by @brambaud in #260
  • Detect when a class extends a class that has been flagged as @internal by @brambaud in #248
  • issue #142: resolve incorrect $reflection definition by @eugene-brit in #178
  • Add 10.0.x to tests by @mglaman in #269
  • Make the discovered Drupal extensions accessible via a service by @brambaud in #264
  • Respect @property annotations on Entity classes by @jacktonkin in #268

New Contributors

Full Changelog: 1.1.1...1.1.2

1.1.1

29 Nov 01:52
165429a
Compare
Choose a tag to compare

Major fix for sites without drupal/core-dev

This release includes fixes for Class PHPUnit\Framework\TestCase not found. errors!

testcase-not-found

Note you must have this in your phpstan.neon if drupal/core-dev is missing:

	excludePaths:
		-  */tests/src/*/*.php

What's Changed

  • Support dynamic return type of Drupal\Core\Url::toString by @brambaud in #255
  • Support parent definition service by @brambaud in #256
  • Avoid false positives when PHPUnit doesn't exist. by @codebymikey in #216
  • Fix incompatibility without drupal/core-dev by @mglaman in #246

New Contributors

Full Changelog: 1.1.0...1.1.1