Bump phpstan/phpstan from 1.6.9 to 1.7.0
Created by: dependabot[bot]
Bumps phpstan/phpstan from 1.6.9 to 1.7.0.
Release notes
Sourced from phpstan/phpstan's releases.
1.7.0
This release closes 25 issues! 🥳
Major new features
🚀
- Fully static reflection! (#1265)
- PHPStan used runtime reflection before June 2020 (https://phpstan.org/blog/zero-config-analysis-with-static-reflection) and hybrid reflection after that
- Analysed code is no longer executed, except for files referenced in
bootstrapFiles
andfiles
sections in Composerautoload
configuration- This prevents various fatal errors during analysis
- Also solves edge cases like #7077, #7019
- Native reflection is always
BetterReflection
adapter (phpstan/phpstan-src#1265)- Global constants no longer have to be defined in
bootstrapFiles
(#1277, #1282), thanks@kukulich
!- Implement
@phpstan-consistent-constructor
and add a new rule as another way to supressnew static()
issues (#1296), thanks@canvural
!
- See the update article: https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static
- Offset/index access PHPDoc type (phpstan/phpdoc-parser#119, #1318), #7094, thanks
@rvanvelzen
!Bleeding edge
🔪
- Unresolvable parameters (#1319), thanks
@rvanvelzen
!- Support
@readonly
property and@immutable
class PHPDoc (#1295, #1335), #4082, thanks@herndlm
!If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's
phpstan.neon
:includes: - vendor/phpstan/phpstan/conf/bleedingEdge.neon
Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more
Improvements
🔧
- Allow setting error format in configuration file (#841), thanks
@ruudk
!- Deprecated
PHPStan\Type\ConstantTypeHelper::getTypeFromValue()
. Instead of going from runtime value -> PHPStan type, usePHPStan\Reflection\InitializerExprTypeResolver::getType()
to go from Expr -> PHPStan type. In case you haveScope
available, useScope::getType()
.- Read default values from php-8-stubs and jetbrains/phpstorm-stubs (https://github.com/phpstan/phpstan-src/commit/7ce177e71b7f6b363d07585015ed2e2c08e9a32e)
- Normalize named arguments when calling extensions (#1301, #1313), #5866, thanks
@staabm
!- implement str-case functions return type extension (#1325), thanks
@staabm
!- ClearResultCacheCommand: allow
--debug
flag (https://github.com/phpstan/phpstan-src/commit/5f5b96d432207395dc7371f62a9d52081f56a405)Bugfixes
🐛
- Fix
get_class
on enum case (#1272), #7167, thanks@olsavmic
!- Keep template types when using
::class
(#1271), #6864, #6986, thanks@olsavmic
!- Fix supertype checks for conditional types (#1287), thanks
@rvanvelzen
!- Fix using
value-of
/key-of
with template types (#1288), thanks@rvanvelzen
!
... (truncated)
Commits
-
509b3d6
PHPStan 1.7.0 -
6912043
Mention@phpstan-consistent-constructor
as a way to solve unsafe static -
a7b7e46
Updated PHPStan to commit 0a43b48284cab7429acef929a7b02a527cc4b24e -
30b89f1
Updated PHPStan to commit 754ee1cdf91de082cca10e057a27254b0cd0cbd0 -
ce8fa93
Updated PHPStan to commit 609cd9c3c4dc2b7aa23cff44443325c3596f83ef -
1de622a
Updated PHPStan to commit 73d3d94607b25a0f27b1dcf602a54d7612d515ca -
72fdbea
Updated PHPStan to commit ccbb60306cd33da7bfe3835d47e75d5acb276761 -
c84e0d4
Updated PHPStan to commit f49d0ec9d175c1451e375b76f546bee7c313baef -
be5a513
Updated PHPStan to commit 5f5b96d432207395dc7371f62a9d52081f56a405 -
824b5c8
Updated PHPStan to commit 94ec4516c3f8f54498149fb76ed499a2d52cc25e - 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)