Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.6.1
->^2.8.0
^2.1.1
->^2.1.6
^2.0.3
->^2.0.4
^2.0.2
->^2.0.3
^0.7.0
->^0.8.1
Release Notes
ergebnis/phpstan-rules (ergebnis/phpstan-rules)
v2.8.0
Compare Source
For a full diff see [
2.7.0...2.8.0
][2.7.0...2.8.0].Added
allRules
parameter to allow disabling and enabling all rules ([#913]), by [@localheinz]Expressions\NoAssignByReferenceRule
, which reports an error when a variable is assigned by reference ([#914]), by [@localheinz]v2.7.0
Compare Source
For a full diff see [
2.6.1...2.7.0
][2.6.1...2.7.0].Added
Closures\NoParameterPassedByReferenceRule
,Functions\NoParameterPassedByReferenceRule
,Methods\NoParameterPassedByReferenceRule
, which report an error when a closure, a function, or a method has a parameter that is passed by reference ([#911]), by [@localheinz]Functions\NoReturnByReferenceRule
andMethods\NoReturnByReferenceRule
, which report an error when a function or a method returns by reference ([#912]), by [@localheinz]phpstan/phpstan (phpstan/phpstan)
v2.1.6
Compare Source
Improvements 🔧
//
(https://github.com/phpstan/phpdoc-parser/pull/264), https://github.com/phpstan/phpdoc-parser/issues/184, thanks @shmax!Bugfixes 🐛
Internals 🔍
v2.1.5
Compare Source
Improvements 🔧
array<value-of<MyEnum::FIRST>, X>
to create an array shape where the key is backed enum case valueBugfixes 🐛
GenericStaticType
in@phpstan-self-out
, use@phpstan-self-out
type when returning$this
(phpstan/phpstan-src@dab99cb), #12575, #12548, #8439, #8316, #8275@phpstan-self-out
with GenericStaticType when method is called on$this
(phpstan/phpstan-src@cf64761)v2.1.4
Compare Source
Improvements 🔧
Bugfixes 🐛
Function signature fixes 🤖
false
to alltrader_*
functions return type (#3815), thanks @rabol!v2.1.3
Compare Source
If you're using
larastan/larastan
PHPStan extension, please update to version 3.0.4 alongside PHPStan 2.1.3 for improved compatibility with the new genericstatic<...>
type. Thank you.This release includes fixes and improvements from PHPStan 1.12.17. Most impportantly it introduces GenericStaticType - support for
static<...>
(#1289), #12485, #11398, #10417, #9807, #9449, #8623, #5512Improvements 🔧
->getAttributes()
on any thinkable reflection object, including$scope->getFunction()
and you'll get a new PHPStan's AttributeReflection class: https://apiref.phpstan.org/2.1.x/PHPStan.Reflection.AttributeReflection.htmlBugfixes 🐛
ReflectionClass::isSubclassOf()
with invariant@template T
(phpstan/phpstan-src@4f2af3b), #12473array_combine()
args must have the same number of elements (ondrejmirtes/BetterReflection@36f3291), #12327Function signature fixes 🤖
Imagick::getConfigureOptions()
returns array instead of string (#3801), thanks @blankse!Internals 🔍
phpstanPlayground.configParameter
errors (phpstan/phpstan-src@71d0327)v2.1.2
Compare Source
Improvements 🔧
Bugfixes 🐛
Function signature fixes 🤖
false
to the return type (#3730), thanks @sreichel!samesite
cookie argument precision (phpstan/phpstan-src@a54cdb0)Internals 🔍
ConstantArrayType::findTypeAndMethodNames()
used only once (phpstan/phpstan-src@30b9cd8)phpstan/phpstan-phpunit (phpstan/phpstan-phpunit)
v2.0.4
Compare Source
phpstan/phpstan-strict-rules (phpstan/phpstan-strict-rules)
v2.0.3
Compare Source
shipmonk-rnd/dead-code-detector (shipmonk/dead-code-detector)
v0.8.1
Compare Source
Fixes:
v0.8.0
Compare Source
New features
!php const Foo\Bar::BAZ
(#131)factory: [Acme\SerializerFactory, create]
(#128)Fixes
Configuration
📅 Schedule: Branch creation - "* 6-22/3 * * 1-5,* 12-23/3 * * 0,6" in timezone Europe/Amsterdam, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.