Skip to content

Releases: mglaman/phpstan-drupal

1.2.2

10 Nov 02:40
bde6445
Compare
Choose a tag to compare

This patch release fixes some issues caused by service decoration support (#615)

What's Changed

  • Add automatic posting for releases by @mglaman in #617
  • PR Drop Drupal 8 from testing workflows by @Boegie in #623
  • Use TypeCombinator::union() to combine decorated service classes. by @cmlara in #620
  • Do not error when a service decorates an unknown service. by @cmlara in #622

Full Changelog: 1.2.1...1.2.2

1.2.1

03 Nov 13:25
920c6b9
Compare
Choose a tag to compare

What's Changed

  • Detect public static $modules when it should be protected static $modules in tests by @Boegie in #597
  • Fix tests after drupal/core changes by @mglaman in #605
  • Stub $modules on KernelTestBase by @mglaman in #607
  • Add information on why this package is needed by @mglaman in #606
  • Add decorator support to ServiceMap. by @cmlara in #615
  • Add null to the container get method return type when ContainerInterace::NULL_ON_INVALID_REFERENCE is passed as the second argument. by @mad-briller in #610

New Contributors

Full Changelog: 1.2.0...1.2.1

1.2.0

24 Aug 20:35
d721420
Compare
Choose a tag to compare

Adds phpstan/phpstan-deprecation-rules as a direct dependency and minimum version of 1.1.4. This allows ignoring deprecation warnings inside PHPUnit tests using @group legacy for the Symfony PHPUnit Bridge.

What's Changed

  • Improve RevisionableStorageInterface stub by @mglaman in #596
  • Add @group legacy deprecated scope resolver by @mglaman in #595

Full Changelog: 1.1.37...1.2.0

1.1.37

25 Jul 14:25
a40fb53
Compare
Choose a tag to compare

What's Changed

  • Add translatable interface stub for content entities by @simonbaese in #588
  • Book module support: keys optional; bid can be new or FALSE; add original_bid, parent_depth_limit. by @mparker17 in #593
  • PluginManagerSetsCacheBackendRule false positives due to intersection cache key types by @claudiu-cristea in #592

New Contributors

Full Changelog: 1.1.36...1.1.37

1.1.36

28 Jun 21:23
345f7ba
Compare
Choose a tag to compare

What's Changed

  • RenderCallbackRule should use ObjectType for service class instance by @mglaman in #582
  • Better static scope checks for \Drupal static calls by @mglaman in #581
  • Handle aliases before parent resolving in service map by @mglaman in #583

Full Changelog: 1.1.35...1.1.36

1.1.35

14 Jun 20:39
7da46c1
Compare
Choose a tag to compare

What's Changed

  • Convert Url toString return type extension to stub by @mglaman in #572
  • AccessResult stubs by @mglaman in #573
  • ContainerDynamicReturnTypeExtension resolves constant string types by @mglaman in #574
  • Allow static calls to \Drupal in \Drupal\TestSite\TestSetupInterface by @mglaman in #575
  • Support RevisionableStorageInterface and methods ::loadRevision() and ::deleteRevision() deprecation by @mglaman in #576

Full Changelog: 1.1.34...1.1.35

1.1.34

24 May 21:14
1422ca1
Compare
Choose a tag to compare

This release fixes EntityFieldReflection from causing stub files with @property annotations on entity type classes from being ignored!

What's Changed

  • Make EntityFieldReflection aware of the book property added by book.module. by @mparker17 in #523

New Contributors

Full Changelog: 1.1.33...1.1.34

1.1.33

17 May 21:49
42d594e
Compare
Choose a tag to compare

What's Changed

  • Add Drupal core baseline check by @mglaman in #554
  • use ramsey/composer-install by @mglaman in #557
  • Replace set-output commands by @Boegie in #567
  • Switch testing against 10.1.x-dev to 11.x-dev branch by @Boegie in #565
  • False positive when (one of) the callback function name(s) in #date_date_callbacks/#date_time_callbacks is a variable. by @Boegie in #558

Full Changelog: 1.1.32...1.1.33

1.1.32

10 May 20:50
d8a70ac
Compare
Choose a tag to compare

What's Changed

  • Support concatenated callables in RenderCallbackRule by @Boegie in #544
  • EntityQueryDynamicReturnTypeExtension ignore count if unknown type by @Boegie in #546
  • Skip loadInclude if baseName is not resolveable by @Boegie in #548
  • Load includes not working from Drupal::moduleHandler()->loadInclude() by @mglaman in #550
  • Add date and date time render callbacks to RenderCallbackRule by @mglaman in #551

Full Changelog: 1.1.31...1.1.32

1.1.31

27 Apr 17:33
266474c
Compare
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