Releases: mglaman/phpstan-drupal
Releases · mglaman/phpstan-drupal
1.1.10
1.1.9
1.1.8
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
Full Changelog: 1.1.7...1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
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
What's Changed
- Expand list of entity type storages by @ptt-homme in #277
- Allow ::referencedEntities on field items by @eiriksm in #265
New Contributors
- @ptt-homme made their first contribution in #277
Full Changelog: 1.1.2...1.1.3
1.1.2
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
- @eugene-brit made their first contribution in #178
- @jacktonkin made their first contribution in #268
Full Changelog: 1.1.1...1.1.2
1.1.1
Major fix for sites without drupal/core-dev
This release includes fixes for Class PHPUnit\Framework\TestCase not found.
errors!
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
- @codebymikey made their first contribution in #216
Full Changelog: 1.1.0...1.1.1