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:
^1.1.5
->^1.1.6
^1.10.18
->^1.10.67
^9.6.8
->^9.6.21
Release Notes
e-lodgy/coding-standard (e-lodgy/coding-standard)
v1.1.6
: Version v1.1.6Compare Source
What's Changed
Full Changelog: e-lodgy/coding-standard@v1.1.5...v1.1.6
phpstan/phpstan (phpstan/phpstan)
v1.10.67
Compare Source
This is the last release, or one of the last releases, in 1.10.x series. The next one is going to be PHPStan 1.11, and it's going to be released at some point in May 2024.
Improvements 🔧
Bugfixes 🐛
date()
return types (#2888), #10468, #6613, thanks @zonuexe!get_defined_vars()
as using constructor arguments (#3012), #10865, thanks @rvanvelzen!Function signature fixes 🤖
gc_status()
signature for PHP8.3+ (#2996), thanks @staabm!mysqli_result::fetch_fields
(#3005), thanks @schlndh!Internals 🔍
v1.10.66
Compare Source
Improvements 🔧
Bugfixes 🐛
array_push
preserves list (phpstan/phpstan-src@5473b67)Function signature fixes 🤖
redis::get
signature (#2990), thanks @VincentLanglet!Internals 🔍
v1.10.65
Compare Source
Improvements 🔧
Bugfixes 🐛
Function signature fixes 🤖
Internals 🔍
TrinaryLogic::describe()
in test (phpstan/phpstan-src@222a66c)v1.10.64
Compare Source
Bleeding edge 🔪
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 🔧
ForbiddenClassNameExtension
for append additional forbidden class prefixes (#2979), thanks @kamil-zacek!AlwaysUsedMethodExtension
(#2927), thanks @axlon!Bugfixes 🐛
Function signature fixes 🤖
DOMDocument::load
return type (#2975), thanks @VincentLanglet!SplObjectStorage::removeAll/Except
(#2892), thanks @schlndh!v1.10.63
Compare Source
Improvements 🔧
Bugfixes 🐛
getIterableKeyType()
, it preserves array-key (phpstan/phpstan-src@d5bf23b), #9307Function signature fixes 🤖
exec()
(#2974), thanks @VincentLanglet!Internals 🔍
AnalyserIntegrationTest->runAnalyse()
(#2960), thanks @staabm!ReflectionProvider::hasClass()
narrows$className
arg (#2976), thanks @staabm!v1.10.62
Compare Source
Improvements 🔧
Bugfixes 🐛
@param-out
work even if it is the only conditional type in a function signature (phpstan/phpstan-src@787c1e2)@param-out
- fix for conditional types (phpstan/phpstan-src@5a47893)v1.10.61
Compare Source
Improvements 🔧
final
modifier in traits (https://github.com/Roave/BetterReflection/pull/1383), thanks @kukulich!@param-out
(phpstan/phpstan-src@effad95), #10699@param-out
(phpstan/phpstan-src@67f9420)Bugfixes 🐛
@param-out
type - consider all execution ends at once (phpstan/phpstan-src@d1bcf78), #10687, #10684Internals 🔍
v1.10.60
Compare Source
Learn more about this release in an article on phpstan.org!
Major new features 🚀
@method
tags:@method T doFoo<T>(T $p)
, #6371callable<T>(T): T
, #8964Bleeding edge 🔪
reportAnyTypeWideningInVarTag
(#2840), thanks @janedbal!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 🐛
$a?->b::c()
and$a?->b::$c
(#2933), thanks @schlndh!fn() => __FUNCTION__
and__METHOD__
(#2934), thanks @schlndh!T of mixed&Foo
andT of mixed|Foo
(#2940), thanks @schlndh!isSuperTypeOf
of callable/Closure when parameter count differ (#2949), #10594, thanks @takaram!Function signature fixes 🤖
ReflectionFunctionAbstract::getExtension
return type (phpstan/phpstan-src@2ece1f8)date_sun_info()
function (#2947), thanks @zonuexe!mysqli get_warnings
(#2929), thanks @janedbal!Internals 🔍
Type::isNull()
inNullsafe(MethodCall|PropertyFetch)Rule
(#2942), thanks @takaram!v1.10.59
Compare Source
Bleeding edge 🔪
array_values
rule (report when alist
type is always passed in) (#2917), thanks @kamil-zacek!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 🔧
treatPhpDocTypesAsCertain
(phpstan/phpstan-src@f5b198c)settype()
(#2920), thanks @ChrisBrenton!Bugfixes 🐛
Internals 🔍
FunctionReflection::isPure()
andExtendedMethodReflection::isPure()
(phpstan/phpstan-src@03d01ea)v1.10.58
Compare Source
Improvements 🔧
unset
(phpstan/phpstan-src@aeadbe2), #10506, #6773Bugfixes 🐛
@phpstan-require-extends
(#2890), #10475, thanks @RobertMe!sort()
,rsort()
andusort()
convert an array to list (#2891), #6467, #10423, #3312, thanks @takaram!T<X>
whereT
bound consist of intersection type (phpstan/phpstan-src@778b569), #10509[1 => 'method', 0 => $obj]
as callable (#2896), #10502, thanks @staabm!@phpstan-assert
PHPDoc inheritance with generics (#2909), #10037, #9123, thanks @RobertMe!Internals 🔍
isSuperTypeOf()
calls (#2895), thanks @staabm!ClassPropertiesNode->getUninitializedProperties()
(#2899), thanks @staabm!v1.10.57
Compare Source
Bleeding edge 🔪
mixed
type based on config (#2885), thanks @schlndh!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 🔧
ClassReflection::getConstant()
return type (phpstan/phpstan-src@8d4ea60)ClassConstantReflection
with BC promise (phpstan/phpstan-src@8f82b79)Bugfixes 🐛
array_filter
callback return type (phpstan/phpstan-src@59ae706)@template
type in method call (phpstan/phpstan-src@11268e5), #10473Function signature fixes 🤖
curl_multi_init()
cannot return false (#2882), thanks @staabm!error_log()
is impure (#2884), thanks @staabm!v1.10.56
Compare Source
Major new feature 🚀
@phpstan-require-extends
,@phpstan-require-implements
, #10302, #9899, #8550, thanks @staabm!@property
PHPDoc above interfaces work on PHP 8.2+Improvements 🔧
Bugfixes 🐛
match
arm condition before analysing the body (phpstan/phpstan-src@2b74aa8), #10418Function signature fixes 🤖
Yaf_Response_Http::__clone
(#2863), thanks @PrinsFrank!transliterator::listIDs
return type (#2865), thanks @PrinsFrank!strtok()
always returns anon-empty-string
when it does not return false (#2869), thanks @staabm!Internals 🔍
Type::getConstantArrays()
(#2864), thanks @staabm!Scope::getFunctionType()
(#2872), thanks @staabm!v1.10.55
Compare Source
Improvements 🔧
@phpstan-ignore-next-line
works for first line below the PHPDoc even in bleeding edge (phpstan/phpstan-src@8b6260c), #10383, https://github.com/phpstan/phpstan/discussions/10374open-resource
type (phpstan/phpstan-src@bbd9a68), #10399Bugfixes 🐛
Internals 🔍
@phpstan-require-extends
and@phpstan-require-implements
(#2856), thanks @staabm!Scope::getFunctionCallStack()
(phpstan/phpstan-src@9be1376), https://github.com/phpstan/phpstan-deprecation-rules/issues/106v1.10.54
Compare Source
Bleeding edge 🔪
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 🐛
v1.10.53
Compare Source
Improvements 🔧
str_increment
/str_decrement
return type extension (#2776), thanks @zonuexe!Bugfixes 🐛
array_udiff()
comparator return type is too strict (#2822), #9697, thanks @staabm!Internals 🔍
v1.10.52
Compare Source
Improvements 🔧
Bugfixes 🐛
v1.10.51
Compare Source
Bleeding edge 🔪
RecursiveIteratorIterator::__construct()
parameter types (#2835), thanks @staabm!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 🐛
ReflectionEnum::getBackingType()
afterReflectionEnum::isBacked()
(#2830), #10167, thanks @staabm!??
type inference (phpstan/phpstan-src@d801919), #10327Internals 🔍
ondrejmirtes/simple-downgrader
str_starts_with()
andstr_contains()
instead ofstrpos()
(#2841), thanks @zonuexe!ParametersAcceptorSelector::combine()
(#2851), thanks @staabm!v1.10.50
Compare Source
Improvements 🔧
nikic/php-parser
to 4.18.0 (phpstan/phpstan-src@24f92cc)Bugfixes 🐛
VoidType
- acceptnull
(phpstan/phpstan-src@40c8fb2), #10291Internals 🔍
InvalidPromotedPropertiesRule
- useFunctionLike
as node type (#2823), thanks @paulbalandan!v1.10.49
Compare Source
Bleeding edge 🔪
GenericObjectType
(#2818, #2821)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 🔧
void
return tonull
after call (#2778), #6720, thanks @herndlm!Bugfixes 🐛
count(list)
regression (#2813), thanks @staabm!Function signature fixes 🤖
SimpleXMLElement
method return types benevolent (when they returnstatic|null
) (phpstan/phpstan-src@fb76c9f)v1.10.48
Compare Source
Bleeding edge 🔪
xor
because that's probably not what the user intended to do (phpstan/phpstan-src@a1fffb3), #10267and
andor
(phpstan/phpstan-src@1d8fff6)&&
and||
(phpstan/phpstan-src@cf2c8bb)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 🔧
ReflectionEnum::getName()
afterReflectionEnum::isBacked()
(#2806), #10192, thanks @franmomu!Bugfixes 🐛
count()
results in type loss (#2811), #10264, thanks @staabm!Function signature fixes 🤖
SimpleXMLElement::addChild
(#2808), #10269, thanks @DaveLiddament!v1.10.47
Compare Source
Improvements 🔧
ExpressionTypeResolverExtension
(#2789), thanks @janedbal!ExpressionTypeResolverExtension
in API ReferenceBugfixes 🐛
array_filter
- handle error types (#2794), #10189, thanks @mglaman!if ($var ?? null)
(phpstan/phpstan-src@c2ba341), #10224Function signature fixes 🤖
Redis::hMset
(#2793), thanks @Vaalyn!v1.10.46
Compare Source
Improvements 🔧
isset()
and ternary operator handling (#2710), #3632, #8190, #8366, #8659, #9580, #10064, #10088, thanks @staabm!Bugfixes 🐛
Configuration
📅 Schedule: Branch creation - "before 6am on Monday" in timezone Europe/Paris, 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.