Update PHPStan packages #512
Merged
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:
3.1.0
->3.4.0
2.1.8
->2.1.17
2.0.1
->2.0.3
2.0.3
->2.0.4
Release Notes
larastan/larastan (larastan/larastan)
v3.4.0
Compare Source
3.4.0
This release includes bunch of new features that will help you fix some PHPStan level 7 errors 💪🏽
Features 🚀
chunkWhile
stubLangGetReturnTypeExtension
extension and64d7afe
App
facadeenvironment
methodInteractsWithInput
stubFormRequestSafeDynamicMethodReturnTypeExtension
Cookie::get
methodgeneralizeEnvReturnType
config option and extension ✨ Read more about it here.config
return types:31e3302
,1640954
,8787a14
,3ea3de4
✨ Read more about it here.Fixes 🐛
value
helper function:a532dac
,4120644
config
andenv
function default arg can beClosure
Docs 📝
neon
highlighting by @FeBe95 in https://github.com/larastan/larastan/pull/2258New Contributors
Full Changelog: larastan/larastan@v3.3.1...v3.4.0
v3.3.1
Compare Source
What's Changed
New Contributors
Full Changelog: larastan/larastan@v3.3.0...v3.3.1
v3.3.0
Compare Source
What's Changed
New Contributors
Full Changelog: larastan/larastan@v3.2.0...v3.3.0
v3.2.0
Compare Source
What's Changed
phpmyadmin/sql-parser
byiamcal/sql-parser
.New Contributors
Full Changelog: larastan/larastan@v3.1.0...v3.2.0
phpstan/phpstan (phpstan/phpstan)
v2.1.17
Compare Source
Major new features 🚀
Bleeding edge 🔪
new static()
in static method of abstract class - level 0 (phpstan/phpstan-src@a5f7c06)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
: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 🔧
Bugfixes 🐛
array_column()
with explicit null$index_key
(#3970), #12945, thanks @herndlm!getNativeExprType
(phpstan/phpstan-src@222676e)Function signature fixes 🤖
libxml_get_errors()
(#3973), thanks @jack-worman!Internals 🔍
ProcessPromise::cancel()
from deferred canceller (phpstan/phpstan-src@df4c1f3)getPhpDocReturnTypeWithUnresolvableTemplateTypes
fromResolvedFunctionVariantWithCallable
(phpstan/phpstan-src@e3c76ad)v2.1.16
Compare Source
Improvements 🔧
@final
PHPDoc tag above properties (#3990), #12999, thanks @lpd-au!Bugfixes 🐛
preg_split()
function return type (#3757), thanks @malsuke!Function signature fixes 🤖
v2.1.15
Compare Source
Improvements 🔧
__toString
methods in(string)
cast (phpstan/phpstan-src@ce257d9)Bugfixes 🐛
new UnionType
(phpstan/phpstan-src@1044f11), #12512{min,max}()
(#3928), #12731, thanks @cs278!IterableType::equals()
withTemplateIterableType
(#3991), thanks @staabm!Function signature fixes 🤖
DOMNode::hasAttributes
(#3800), thanks @Niklan!Internals 🔍
instanceof *Type
in Rules classes (#3858), thanks @zonuexe!v2.1.14
Compare Source
Bugfixes 🐛
strict_types=0
(#3965), #12946, #12940, #12950, #12947, thanks @staabm!array_slice()
edge cases (#3959), thanks @herndlm!non-falsy-string
cannot be converted to0
(#3971), thanks @staabm!Internals 🔍
$parentNode = $parentNode
(#3938), thanks @samsonasik!v2.1.13
Compare Source
Major new features 🚀
Bleeding edge 🔪
@internal
symbols usage from outside their top namespace, #1178If 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
: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 🔧
array_splice()
(#3947), thanks @herndlm!array_slice()
for normal arrays (#3946), #12880, thanks @herndlm!ConstantArrayType::sliceArray()
with non constant integer args (#3949), thanks @herndlm!Bugfixes 🐛
Scope::rememberConstructorScope()
should not remember the function scope (#3944), https://github.com/spaze/phpstan-disallowed-calls/issues/323, thanks @staabm!session_set_cookie_params
call with named arguments (phpstan/phpstan-src@72e37dc), #12934Internals 🔍
ConstantArrayType::shuffle()
(#3948), thanks @herndlm!ExtendedPropertyReflection::getName()
(phpstan/phpstan-src@ff198c9)v2.1.12
Compare Source
Improvements 🔧
discoveringSymbols
tip (#3929), https://github.com/phpstan/phpstan/discussions/12859, thanks @herndlm!Bugfixes 🐛
count()
(#3902), #12787, thanks @herndlm!matches[0]
type for regexes containing\K
(#3920), #12792, thanks @mvorisek!non-empty-array
for union ofisIterableAtLeastOnce()->yes()
(#3937), #12847, thanks @staabm!Function signature fixes 🤖
getopt()
function stub (#3655), #12103, thanks @janedbal!Internals 🔍
v2.1.11
Compare Source
Improvements 🔧
Bugfixes 🐛
Function signature fixes 🤖
SessionHandlerInterface::read
return type (#3884), #12748, thanks @sayuprc!v2.1.10
Compare Source
Bugfixes 🐛
v2.1.9
Compare Source
Improvements 🔧
count()
narrowing of constant arrays (#3709), #12190, #3631, thanks @herndlm!#[Pure(true)]
in PhpStorm stubs ashasSideEffects => true
(#3880), #6345, #12577, #10342, thanks @zonuexe!Bugfixes 🐛
count()
regression (#3895), thanks @staabm!count()
narrowing handling of empty array (#3896), thanks @herndlm!count()
(#3898), thanks @herndlm!Internals 🔍
shouldPolluteScopeWithLoopInitialAssignments
to true which is PHPStan's default behaviour (phpstan/phpstan-src@1b56b0c)phpstan/phpstan-deprecation-rules (phpstan/phpstan-deprecation-rules)
v2.0.3
Compare Source
(string)
v2.0.2
Compare Source
phpstan/phpstan-strict-rules (phpstan/phpstan-strict-rules)
v2.0.4
Compare Source
Configuration
📅 Schedule: Branch creation - "before 4pm every weekday except before 9am every weekday" in timezone America/New_York, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.