Bump phpstan/phpstan from 1.2.0 to 1.3.0
Created by: dependabot[bot]
Bumps phpstan/phpstan from 1.2.0 to 1.3.0.
Release notes
Sourced from phpstan/phpstan's releases.
1.3.0
Major new features
🚀
- Support for PHP 8.1 Enums - RFC
- Thanks to
@kukulich
for custom Enum rules!- Upgraded Roave/BetterReflection to 5.0.0
- PHP 7.1+ is still supported because the dependency is downgraded automatically in our own fork
- This brings plenty of bugfixes, for example PHP 8.0 Attributes can now be read in static reflection context
- PHPStan now works when OPCache is enabled!
- Thanks to this commit: https://github.com/phpstan/phpstan-src/commit/e30f4467ab8fa2421f7da6c3909061ab4d5ba743
- The development repository
phpstan/phpstan-src
is now PHP 8.0+ only, while the distribution packagephpstan/phpstan
still supports PHP 7.1+.
- This is achieved thanks to automatic downgrade of source code using Rector during PHAR compilation
- PHPStan now ships with Symfony PHP polyfills for PHP 7.2-8.0.
Improvements
🔧
- Update
nikic/php-parser
to 4.13.2 (https://github.com/phpstan/phpstan-src/commit/8939964ecfb44a01629c3f2747dbecbc6b273ea0)- Update to Symfony 5.4 (#863)
- CLI option
--allow-empty-baseline
to allow generating empty baseline (#776), thanks@Lctrs
!- Support for
@phpstan-property
,@phpstan-property-read
, and@phpstan-property-write
(#775), thanks@mad-briller
!- Add support for the
key-of<...>
andvalue-of<...>
types (#800), thanks@ste93cry
!- GithubErrorFormatter > Allow any
ErrorFormatter
(#854), thanks@ruudk
!- Array unpacking support for string-keyed arrays (#803), thanks
@canvural
!- Moved some classes from ClassBlacklistReflectionProvider to staticReflectionClassNamePatterns config so that they are in effect for ClassBlacklistSourceLocator too (https://github.com/phpstan/phpstan-src/commit/e40ba1569885ce70cdfea4d06abe429960589b31)
- PHPStanTestCase: Added a helper method to assert no errors happend (#894), thanks
@staabm
!Bugfixes
🐛
- Resolve deprecated tag also from parents (#792), thanks
@eiriksm
!echo
isn't callable either. (#777), thanks@johnbillion
!- Resolve object type by class const fetch in switch statement (#745), thanks
@marmichalski
!- Allow also
$object::class
with Identical (#745), thanks@marmichalski
!- Fixed ErrorFormatter tests in terminals with console support (#805), thanks
@kukulich
!- Copy all environment variables when running PHPStan Pro (https://github.com/phpstan/phpstan-src/commit/e61ad9575a000b410efcf2824ef3a4c87083e1b6), #5433
- Allow destructuring of objects implementing ArrayAccess (#819), thanks
@herndlm
!- Spreading of general arrays should not lead to a non-empty-array (#818), thanks
@herndlm
!- Simplify FileTypeMapper (https://github.com/phpstan/phpstan-src/commit/256d11b8fe9f19924b9f4decc3451665fc8c2769)
- Make FileTypeMapper more deterministic (https://github.com/phpstan/phpstan-src/commit/ae6dca5d4f485fde77a1b2c7eaca55fe2ec9b28a)
- Fix normal vs. stub PHPDoc (https://github.com/phpstan/phpstan-src/commit/e9dd3a30339de34a3fe11092b3aa245216038953)
- ReflectionAttribute is no longer final class (https://github.com/phpstan/phpstan-src/commit/97e153ce52148d94719e3af442aa7358f3a73d07)
- ReflectionAttribute stub - IS_INSTANCEOF constant (https://github.com/phpstan/phpstan-src/commit/cfb6fad051a4419872b4de47db45c398c90be6e1)
- DependencyResolver - cause autoloading less often when looking at literal arrays (https://github.com/phpstan/phpstan-src/commit/b927c87f585d314ba5a766203a32671186d612c5), #6187, #6096
- MemoizingReflectionProvider - cache
hasClass()
as case-sensitive (https://github.com/phpstan/phpstan-src/commit/792ce0af4b4bd59f8c5c4f67a28685922e0fff15), #6096- XdebugHandler - setPersistent (#726), #5809, thanks
@fsmoak
!- Simplify AutoloadSourceLocator - let it actually autoload the file (https://github.com/phpstan/phpstan-src/commit/e30f4467ab8fa2421f7da6c3909061ab4d5ba743)
- AutoloadSourceLocator - filter classes by startLine only if there are multiple of them (#882)
- ComposerJsonAndInstalledJsonSourceLocatorMaker - fix for autoload-dev section (#882)
... (truncated)
Commits
-
ffc5aee
PHPStan 1.3.0 -
04e47a6
Updated PHPStan to commit 71572f9a1e6407ce79aa163b0b9eacf2e48b47b0 -
054b08c
Updated PHPStan to commit 20f5877705d42e696c64a18d4efcb1d1557b9df2 -
f61e569
Updated PHPStan to commit 8e38b5b1821c171bc017890efa4c959c630286b3 -
984615b
Updated PHPStan to commit 6e63bf720b7bd027d10fef50821fca34b7d4f90a -
b467936
Updated PHPStan to commit fe9a0fd411ac9be5120f587d9811e1d91531e0b8 -
1e8501b
Updated PHPStan to commit 7210d0af951e96182d6737722db11e4e1c6a8569 -
9ba890e
Updated PHPStan to commit bbb79b7483872062515b204a2285707b73e37547 -
e6ce774
Updated PHPStan to commit 53d6565edf734fc48933a80a8a9898f13adb3753 -
90ad22f
Updated PHPStan to commit abf3cbe9e76de8fd8767283f858717f922f109d4 - 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)