Skip to content

Releases: mglaman/phpstan-drupal

1.3.1

27 Sep 08:55
2bc25a5
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.3.0...1.3.1

1.3.0

27 Sep 07:53
9aae875
Compare
Choose a tag to compare

The drupal_root parameter is now unused and deprecated; if you are using it, you may remove it from your phpstan.neon. The web flow/drupal-finder package has been updated to 1.3, removing the need for the drupal_root parameter.

What's Changed

Internals 🔍

  • Removed deprecated ParametersAcceptorSelector::selectSingle() by @mglaman in #796
  • Fix CI for main branch by @webflo in #792

Full Changelog: 1.2.12...1.3.0

1.2.12

07 Aug 21:19
346bddd
Compare
Choose a tag to compare

New bleeding edge toggles for checking deprecated hooks:

Use the following to check your code for usage of deprecated hooks in Drupal core

parameters:
	drupal:
		bleedingEdge:
			checkCoreDeprecatedHooksInApiFiles: true
			checkContribDeprecatedHooksInApiFiles: false

Use the following to also check for usage of deprecated hooks in contributed modules (may break if they have malformed .api.php files)

parameters:
	drupal:
		bleedingEdge:
			checkCoreDeprecatedHooksInApiFiles: true
			checkContribDeprecatedHooksInApiFiles: true

The previous toggle checkDeprecatedHooksInApiFiles is deprecated.

What's Changed

Internals 🔍

New Contributors

Full Changelog: 1.2.11...1.2.12

1.2.11

10 May 17:23
e624a4b
Compare
Choose a tag to compare

What's Changed

Internals 🔍

  • Accept deprecations from webflo/drupal-finder 1.3 by @mglaman in #758
  • Allow Drush 13 for testing Drupal 11 by @mglaman in #759
  • Allow PHPUnit 10, 11 for Drupal 11 testing by @mglaman in #761

Full Changelog: 1.2.10...1.2.11

1.2.10

02 Apr 17:28
cdafb32
Compare
Choose a tag to compare

What's Changed

Internals 🔍

Full Changelog: 1.2.9...1.2.10

1.2.9

22 Mar 20:13
2062852
Compare
Choose a tag to compare

What's Changed

  • Add EntityRepositoryInterface return type extension by @mglaman in #739

Internals 🔍

Full Changelog: 1.2.8...1.2.9

1.2.8

21 Mar 15:12
Compare
Choose a tag to compare

New rules!

Enable these rules by turning them on in your phpstan.neon:

parameters:
	drupal:
		dependencySerializationTraitPropertyRule: true
		accessResultConditionRule: true

What's Changed

  • Mark LockBackendInterface::acquire() as impure by @mglaman in #736

Internals 🔍

New Contributors

Full Changelog: 1.2.7...1.2.8

1.2.7

14 Feb 05:24
32f79fc
Compare
Choose a tag to compare

What's Changed

Internals 🔍

  • Build integration missing 10.x by @mglaman in #725
  • Bump cbrgm/mastodon-github-action from 1 to 2 by @dependabot in #722
  • Add missing return in ClassExtendsInternalClassRule. by @mad-briller in #716
  • Simplify access to reflections in SymfonyCmfRoutingInClassMethodSignatureRule and TestClassesProtectedPropertyModulesRule. by @mad-briller in #717
  • Fully qualify all global function calls. by @mad-briller in #718
  • Add implements generics to all Rule implementations and remove associated assert() calls. by @mad-briller in #719
  • Bump actions/cache from 3 to 4 by @dependabot in #720

Full Changelog: 1.2.6...1.2.7

1.2.6

16 Jan 00:45
ba8678f
Compare
Choose a tag to compare

PHPStan requirement has been bumped to 1.10.56 for accessing the function stack with parameters from the analyzer scope, enabling a DeprecationHelper deprecated scope resolver.

What's Changed

  • Add DeprecationHelper DeprecatedScopeResolver by @mglaman in #714

Full Changelog: 1.2.5...1.2.6

1.2.5

10 Jan 16:58
a5a001a
Compare
Choose a tag to compare

The phpstan-drupal playground code has been moved to https://github.com/mglaman/phpstan-drupal-playground/

What's Changed

  • Replace usages of getLine with getNewLine by @mglaman in #709
  • Fix RenderCallbackRule PHPStan errors by @mglaman in #710
  • Deprecation fixed for loadRevison on RevisionableStorageInterface by @mglaman in #712

Full Changelog: 1.2.4...1.2.5