Bump phpstan/phpstan from 1.6.9 to 1.7.1
Created by: dependabot[bot]
Bumps phpstan/phpstan from 1.6.9 to 1.7.1.
Release notes
Sourced from phpstan/phpstan's releases.
1.7.1
Improvements
🔧 Bugfixes
🐛
- Properly support constant arrays in
array_reverse
(#1342), thanks@herndlm
!- ReflectionSourceStubber - do not make optional parameter without default value available nullable (fixes Phalcon reflection issue) (https://github.com/phpstan/phpstan/commit/7beee3d5db13cb1535915c2ec45d5b656be25f1a, https://github.com/ondrejmirtes/BetterReflection/commit/4495bf122966e316c2e171fcc940aa789f4746e4, https://github.com/phpstan/phpstan-src/commit/c24aa5a165bf7e5bd1cd5edc2a6aedbc238a0de3), #7294
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()
.
... (truncated)
Commits
-
e3baed2
PHPStan 1.7.1 -
e4f8a00
Updated PHPStan to commit c24aa5a165bf7e5bd1cd5edc2a6aedbc238a0de3 -
627b79e
Nicer reproduction -
7beee3d
Reproduce Phalcon reflection issue -
b7382f4
Updated PHPStan to commit 00ec4af19baf003e7ac33e99cfc17b1f40178165 -
8bc88a7
Update command-line-usage.md -
2ad1485
Update discovering-symbols.md -
bd37e80
Document newerrorFormat
parameter -
69999be
Document immutable PHPDoc tag -
4f12bce
Document readonly PHPDoc tag - 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)