Releases: mglaman/phpstan-drupal
2.0.0
What's Changed
- Improve error message for alterInfo in PluginManagerInspectionRule by @mglaman in #799
- Fix typo by @prudloff-insite in #804
- Update phpstan/phpstan related dependencies to ^2.0" by @Boegie in #805
- @phpstan ignore next line replacements by @Boegie in #809
- Drop d9 by @Boegie in #807
New Contributors
- @prudloff-insite made their first contribution in #804
Full Changelog: 1.3.1...2.0.0
1.3.2
What's Changed
- Improve error message for alterInfo in PluginManagerInspectionRule by @mglaman in #799
- Fix typo by @prudloff-insite in #804
New Contributors
- @prudloff-insite made their first contribution in #804
Full Changelog: 1.3.1...1.3.2
1.3.1
1.3.0
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
- Create LanguageInterface.stub by @mglaman in #793
- Create DrupalDateTime.stub by @mglaman in #794
- Upgrade to webflo/drupal-finder 1.3 by @webflo in #790
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
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
- Update entityMapping contrib example by @webflo in #775
- Add stubs for text field types by @ceesgeene in #783
- Add stubs for datetime field type by @ceesgeene in #785
- Fixing TypeError and deprecated message by @balagan73 in #778
- Seperate core and contrib api files by @bbrala in #774
- Add InstallerExistingConfigTestBase to BrowserTestBaseDefaultThemeRule exclusion [#780] by @nlighteneddesign in #781
- Add stubs for comment field type by @ceesgeene in #784
- Resolve #[IgnoreDeprecations] to deprecated scope by @mondrake in #779
Internals 🔍
- PHPStan 1.11.x updates by @mglaman in #765
- Drop PHP 7.4 by @mglaman in #763
- Drop PHP 8.0 by @mglaman in #766
- Bump Eomm/why-don-t-you-tweet from 1 to 2 by @dependabot in #768
New Contributors
- @ceesgeene made their first contribution in #783
- @balagan73 made their first contribution in #778
- @bbrala made their first contribution in #774
- @nlighteneddesign made their first contribution in #781
- @mondrake made their first contribution in #779
Full Changelog: 1.2.11...1.2.12
1.2.11
What's Changed
- Support turning off @internal check by @mglaman in #754
- Register dynamic services from DrupalKernel::attachSynthetic by @mglaman in #762
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
1.2.9
1.2.8
New rules!
- Add DependencySerializationTraitPropertyRule by @MakerTim in #731
- Add AccessResultConditionRule by @mglaman #737
Enable these rules by turning them on in your phpstan.neon
:
parameters:
drupal:
dependencySerializationTraitPropertyRule: true
accessResultConditionRule: true
What's Changed
Internals 🔍
- Bump ramsey/composer-install from 2 to 3 by @dependabot in #732
New Contributors
Full Changelog: 1.2.7...1.2.8
1.2.7
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