Skip to content

Releases: mglaman/phpstan-drupal

1.1.31

27 Apr 17:33
266474c

Choose a tag to compare

What's Changed

  • Update to "actions/checkout@v3" and thus node.js 16 by @Boegie in #537
  • GitIgnore PHPStorm files by @Boegie in #535
  • Bump phpstan/phpstan to ^1.10.1 by @Boegie in #533
  • Support TrustedCallback attribute for RenderCallbackRule by @mglaman in #529
  • allow drush/drush ^11 in require-dev by @mglaman in #540
  • use isSuperOf instead of instanceof checks for storage types by @mglaman in #541
  • Count entity queries on config entities incorrectly require accesCheck() by @Boegie in #531

Full Changelog: 1.1.30...1.1.31

1.1.30

18 Apr 14:27
21b6249

Choose a tag to compare

What's Changed

  • Add baseline for PHPStan 1.10 new deprecations by @mglaman in #518
  • Ignore accessCheck on config entity queries by @mglaman in #517
  • Ignore LoadIncludes rule if module and file name unknown by @Boegie in #524

Full Changelog: 1.1.29...1.1.30

1.1.29

08 Feb 21:44
e6f6191

Choose a tag to compare

What's Changed

  • Add stub validation test, fix stubs by @mglaman in #511
  • Overwrite specified types for accessCheck type specifier by @mglaman in #512

Full Changelog: 1.1.28...1.1.29

1.1.28

01 Feb 21:38
55c3f43

Choose a tag to compare

What's Changed

  • False negative accessCheck failure on non-chained entity queries by @Boegie in #497
  • stub FieldItemList::createItem return type by @mglaman in #505
  • add links for discussion and Drupal slack channel by @mglaman in #506

Full Changelog: 1.1.27...1.1.28

1.1.27

25 Jan 22:06
61daa57

Choose a tag to compare

What's Changed

  • False negative accessCheck failure on entity queries with entity type coming from parameter by @Boegie in #495
  • getAggregateQuery() entity query access check false report by @Boegie in #498
  • allow \Drupal static in enums by @mglaman in #502

New Contributors

Full Changelog: 1.1.26...1.1.27

1.1.26

22 Dec 14:43
5e8b527

Choose a tag to compare

What's Changed

  • Replace deprecated PHPStan\Type\Constant\ConstantArrayType::findTypeAndMethodName() call by @mxr576 in #485
  • bump phpstan minimum to 1.8 by @mglaman in #489
  • Allow EntityReferenceFieldItemListInterface::referencedEntities to work with generic by @dpi in #478
  • fix: Fix unpredictable false positive/negative of missing entity access check in function scope due to cache key conflict by @driskell in #476
  • Update EntityQueryWithoutAccessRule rule message to use full Drupal message by @goba in #469
  • REQUEST_TIME pushed to 11.0.0 removal by @mglaman in #491

New Contributors

Full Changelog: 1.1.25...1.1.26

1.1.25

18 Jul 17:19
480245d

Choose a tag to compare

Quick patch release following up on the RequestStack forward compatibility shim work in #446. This reduces the noise by only reporting an error when using the method deprecated in Symfony 5 and removed in Symfony 6.

What's Changed

  • More specific rules for RequestStack shim by @mglaman in #459

Full Changelog: 1.1.24...1.1.25

1.1.24

14 Jul 20:55
64ff852

Choose a tag to compare

What's Changed

  • Add generic callable check for RenderCallbackRule by @mglaman in #453
  • Entity query access check rule improvements by @mglaman in #454
  • Specify T for FieldableEntityInterface stub by @mglaman in #456

Full Changelog: 1.1.23...1.1.24

1.1.23

14 Jul 12:17
ad47ecc

Choose a tag to compare

Includes a hotfix for 1.1.22 to fix SymfonyCmfRoutingInClassMethodSignatureRule

What's Changed

  • Generic FieldItemListInterface and related stubs by @jacktonkin in #433
  • Update phpstan-dev workflow by @mglaman in #450
  • SymfonyCmfRoutingInClassMethodSignatureRule stop using isSuperOf by @mglaman in #451

Full Changelog: 1.1.22...1.1.23

1.1.22

13 Jul 18:38
87e64fb

Choose a tag to compare

What's Changed

  • add support for class string service ids by @laytan in #434
  • Test #lazy_builder and static::class concat for callback by @mglaman in #426
  • fix composer allow-plugins in CI by @mglaman in #444
  • Allow static::class . '::methodName' concatenation in lazy builders. by @longwave in #436
  • Add SymfonyCmfRouteObjectInterfaceConstantsRule by @mglaman in #445
  • Forward compatibility shim added for Symfony 5 RequestStack rule by @mglaman in #446

New Contributors

Full Changelog: 1.1.21...1.1.22