Bump vimeo/psalm from 3.14.2 to 3.15
Created by: dependabot[bot]
Bumps vimeo/psalm from 3.14.2 to 3.15.
Release notes
Sourced from vimeo/psalm's releases.
Automatically add pure/immutable annotations
Features
This release brings a couple of features that are useful to fans of functional programming.
If you're unfamiliar with these concepts, or want to know how Psalm uses them, read this article first.
Automatic addition of
@psalm-pure
/@psalm-immutable
annotations (#4036):Running
vendor/bin/psalm --alter --issues=MissingPureAnnotation,MissingImmutableAnnotation
will add those annotations to any function, method or class that deserves it.So
function sayHello(string $s): string { return 'Hello ' . $s; }
is transformed into
/** * @psalm-pure */ function sayHello(string $s): string { return 'Hello ' . $s; }
Note: running this command will not recursively add annotations, so if you have a chain of callers like
function one(string $s) { return two($s); } function two(string $s) { return $s; }
running the command once will produce
function one(string $s) { return two($s); } /** @psalm-pure */ function two(string $s) { return $s; }
and running it a second time will produce
Commits
-
de6e7f3
Make reportInfo="false" flag better -
f6b2d0c
Revert trim changes -
0519487
Fix type coercion -
01140f1
Fix Psalm errors -
7fd1e1f
Add more accomodations for TPositiveInt -
167e1c4
Fix erroneous Closure::__invoke return type -
c7c0493
Fix #4093 - prevent redundant condition in presence of positive-int -
2160396
Config reportInfo to speed up analysis for big projects (#4095) -
66bbfea
Addnull
as a possible type parameter tostrval
(#4100) -
ffc279e
Converted MissingPropertyType to property issue (#4099) - 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 rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will 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 version
will 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 dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)