Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.0.3
->^1.2.0
^1.0.0
->^1.1.4
Release Notes
mglaman/phpstan-drupal (mglaman/phpstan-drupal)
v1.2.0
Compare Source
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
@group legacy
deprecated scope resolver by @mglaman in https://github.com/mglaman/phpstan-drupal/pull/595Full Changelog: mglaman/phpstan-drupal@1.1.37...1.2.0
v1.1.37
Compare Source
What's Changed
New Contributors
Full Changelog: mglaman/phpstan-drupal@1.1.36...1.1.37
v1.1.36
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.35...1.1.36
v1.1.35
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.34...1.1.35
v1.1.34
Compare Source
This release fixes
EntityFieldReflection
from causing stub files with@property
annotations on entity type classes from being ignored!What's Changed
New Contributors
Full Changelog: mglaman/phpstan-drupal@1.1.33...1.1.34
v1.1.33
Compare Source
What's Changed
set-output
commands by @Boegie in https://github.com/mglaman/phpstan-drupal/pull/567Full Changelog: mglaman/phpstan-drupal@1.1.32...1.1.33
v1.1.32
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.31...1.1.32
v1.1.31
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.30...1.1.31
v1.1.30
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.29...1.1.30
v1.1.29
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.28...1.1.29
v1.1.28
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.27...1.1.28
v1.1.27
Compare Source
What's Changed
New Contributors
Full Changelog: mglaman/phpstan-drupal@1.1.26...1.1.27
v1.1.26
Compare Source
What's Changed
PHPStan\Type\Constant\ConstantArrayType::findTypeAndMethodName()
call by @mxr576 in https://github.com/mglaman/phpstan-drupal/pull/485EntityReferenceFieldItemListInterface::referencedEntities
to work with generic by @dpi in https://github.com/mglaman/phpstan-drupal/pull/478EntityQueryWithoutAccessRule
rule message to use full Drupal message by @goba in https://github.com/mglaman/phpstan-drupal/pull/469REQUEST_TIME
pushed to 11.0.0 removal by @mglaman in https://github.com/mglaman/phpstan-drupal/pull/491New Contributors
Full Changelog: mglaman/phpstan-drupal@1.1.25...1.1.26
v1.1.25
Compare Source
Quick patch release following up on the RequestStack forward compatibility shim work in https://github.com/mglaman/phpstan-drupal/pull/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
Full Changelog: mglaman/phpstan-drupal@1.1.24...1.1.25
v1.1.24
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.23...1.1.24
v1.1.23
Compare Source
Includes a hotfix for 1.1.22 to fix SymfonyCmfRoutingInClassMethodSignatureRule
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.22...1.1.23
v1.1.22
Compare Source
What's Changed
New Contributors
Full Changelog: mglaman/phpstan-drupal@1.1.21...1.1.22
v1.1.21
Compare Source
What's Changed
New Contributors
Full Changelog: mglaman/phpstan-drupal@1.1.20...1.1.21
v1.1.20
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.19...1.1.20
v1.1.19
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.18...1.1.19
v1.1.18
Compare Source
What's Changed
New Contributors
Full Changelog: mglaman/phpstan-drupal@1.1.17...1.1.18
v1.1.17
Compare Source
Fixes with #409 allow using PHPStan without the rich node parser.
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.16...1.1.17
v1.1.16
Compare Source
What's Changed
rules.neon
by @mglaman in https://github.com/mglaman/phpstan-drupal/pull/389Full Changelog: mglaman/phpstan-drupal@1.1.15...1.1.16
v1.1.15
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.14...1.1.15
v1.1.14
Compare Source
What's Changed
rules
out ofservices
by @mglaman in https://github.com/mglaman/phpstan-drupal/pull/375Full Changelog: mglaman/phpstan-drupal@1.1.13...1.1.14
v1.1.13
Compare Source
What's Changed
New Contributors
Full Changelog: mglaman/phpstan-drupal@1.1.12...1.1.13
v1.1.12
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.11...1.1.12
v1.1.11
Compare Source
Entity field analysis improvements
Field types provided by Drupal core have been stubbed to provide
@property
annotations. If you have a field value and it has been type hinted, PHPStan will not complain about accessing a non-existent property.Example:
Updated deprecated global constants
Drupal 9.3.x and 9.4.x deprecated more global constants. The rule to check for these has been updated.
What's Changed
New Contributors
Full Changelog: mglaman/phpstan-drupal@1.1.10...1.1.11
v1.1.10
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.9...1.1.10
v1.1.9
Compare Source
This relaxes the constraints so that phpstan-drupal can be installed on the Drupal 10.0.x branch.
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.8...1.1.9
v1.1.8
Compare Source
RenderCallbackRule Improvements
The RenderCallbackRule added in 1.1.5 had various flaws. This release should fix them:
#access_callback
– not an array, single callable.#lazy_builder
– an array, but of call_user_func_array values ([callable, args]
)service_name:method
style callbacks were not parsed, now they areWhat's Changed
New Contributors
Full Changelog: mglaman/phpstan-drupal@1.1.7...1.1.8
v1.1.7
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.6...1.1.7
v1.1.6
Compare Source
Hotfix.
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.5...1.1.6
v1.1.5
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.4...1.1.5
v1.1.4
Compare Source
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.1.3...1.1.4
v1.1.3
Compare Source
What's Changed
New Contributors
Full Changelog: mglaman/phpstan-drupal@1.1.2...1.1.3
v1.1.2
Compare Source
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
andModuleHandlerInterface::loadInclude
. Previously these two rules had to re-scan for extensions whenever the function or method was analyzed.What's Changed
@internal
by @brambaud in https://github.com/mglaman/phpstan-drupal/pull/248@property
annotations on Entity classes by @jacktonkin in https://github.com/mglaman/phpstan-drupal/pull/268New Contributors
Full Changelog: mglaman/phpstan-drupal@1.1.1...1.1.2
v1.1.1
Compare Source
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
ifdrupal/core-dev
is missing:What's Changed
New Contributors
Full Changelog: mglaman/phpstan-drupal@1.1.0...1.1.1
v1.1.0
Compare Source
Backwards compatibility warning
1.1.0 has introduced a breaking change in the configuration schema. See below for more information.
What's Changed
Full Changelog: mglaman/phpstan-drupal@1.0.3...1.1.0
Configuration changes
The
drupal.entityTypeStorageMapping
allowed specifying what storage classes were used for different entity types. With #239, support was added to specify what entity class an entity type uses. With #250 the way entity type information is configured has been changed.Previously:
Now there is an
entityMapping
property so that we can handle future enhancements with entity type static analysis.phpstan/phpstan-deprecation-rules (phpstan/phpstan-deprecation-rules)
v1.1.4
Compare Source
v1.1.3
Compare Source
v1.1.2
Compare Source
v1.1.1
Compare Source
v1.1.0
Compare Source
--no-suggest
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.