Update vimeo/psalm requirement from ^3.12 to ^3.12 || ^4.0
Created by: dependabot[bot]
Updates the requirements on vimeo/psalm to permit the latest version.
Release notes
Sourced from vimeo/psalm's releases.
Support PHP 8 Attributes
Features
This adds basic support for PHP 8 attributes (#4367). Psalm checks attribute arguments, and also emits a
UndefinedAttributeClassissue if the attribute cannot be found.This version of Psalm can also be installed when using PHP 8.
Bugfixes
- class
getIteratorcalls are used inside loops (#3625)- allow Psalm to understand more assignments when evaluating implicit
else(#4374)- promoted properties are always used in the constructor (#4386)
arraylike-objectshould beCountabletoo (#4398)- signature types (return & param types) weren't being invalidated when their
usechanged, now they are- allow multiple
@psalm-assert-if-trueon a single variable (#4414)- uses better path normalisation when
resolveFromConfig="true"so that existing baselines need only small adjustments (#4410)- @BenMorel improved some ext-ds stubs (#4415)
- allow implicit
null->offsetGet()inside anissetcall (#4397)- fix
tryanalysis on assigned vars when they're typed tomixed(#4418)- any class with a
__toStringmethod in PHP 8 is assumed to implementStringable(#4429)- fix crash when encountering no-argument
str_replace,DOMNode::appendChild,crypt,get_class_methods,iterator_to_array,get_object_varscalls- prevent unused variable false-positive when
(bool)or(float)casts are used (#4435)- @enumag improved
ext-dsstubs with immutable data structures (#4425)
Commits
-
8929bdeAdd psalm-mutation-free to ext-ds (#4425) -
4bb675ePass CodeLocation to FunctionParamsProviderInterface interface (#4444) -
82f35c1Ensure Stringable is always available to tests that need it -
438bcc6Use softer return -
2e95d1fUse more robust check for Stringable stub -
5c784dcFix #4435 - ensure casts are always flow-sensitive -
fce5c26Remove subpar test -
dab1aacProtect more calls -
f43dba8Use more accurate comparison for non-empty-lists -
083102aFix count call - Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)