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.4.0
->3.6.0
1.2.0
->1.4.6
4.13.1
->4.20.0
Release Notes
FriendsOfPHP/PHP-CS-Fixer
v3.6.0
Compare Source
is_resource
. (drupol)v3.5.0
Compare Source
Tokens::insertSlices
not moving around all affected tokens (paulbalandan, SpacePossum)phpstan/phpstan
v1.4.6
Compare Source
Improvements 🔧
implode()
function (#991), thanks @staabm!Bugfixes 🐛
TypeCombinator::remove()
toType::tryRemove()
(#994), #6438, thanks @arnaud-lb!@var
right aboveforeach
(phpstan/phpstan-src@b6bbbaf), #6564:
(phpstan/phpstan-src@5162bcf), https://github.com/composer/composer/issues/10498Function signature fixes 🤖
md5()
always returnnon-empty-string
(#987), thanks @janbarasek!Iterator
. (#988), thanks @johnbillion!round()
/ceil()
/floor()
(#729), thanks @johnbillion!SplFileObject::fstat()
(#996), thanks @johnbillion!v1.4.5
Compare Source
Improvements 🔧
--generate-baseline
(-b
) (#980), thanks @Seldaek!array_filter()
return type via string callable (#938), #6417, thanks @herndlm!Bugfixes 🐛
NeverType::toBoolean()
(phpstan/phpstan-src@fe3a341), #6258DatePeriod
constructor extension in subclasses (phpstan/phpstan-src@0c82b3a), #6500Function signature fixes 🤖
array_chunk
signature (#709), thanks @staabm!preg_replace_callback()
callable. (#758), thanks @johnbillion!array_splice()
argument$replacement
(#901), #6288, thanks @spawnia!stream_bucket_new
returns an object (#968), thanks @mind-bending-forks!mb_*
functions (#717), thanks @staabm!array_column()
withnull
as$column_key
(#970), thanks @jlherren!v1.4.4
Compare Source
Improvements 🔧
array_column()
(#948), thanks @jlherren!DatePeriod
+ constructor dynamic return type extension (#958), #5953, thanks @Alban-io!Bugfixes 🐛
array_filter()
flags for narrowing down types (#941), thanks @herndlm!isset()
(phpstan/phpstan-src@f05e8eb), #4926isset()
,empty()
and null coalesce operator (??
) (phpstan/phpstan-src@3b17acc), #4592, #4903, #2420, #2718, #3126, #4586, #4887Function signature fixes 🤖
Throwable::getTrace()
method (#914), thanks @ste93cry!v1.4.3
Compare Source
Improvements 🔧
--memory-limit
CLI option inclear-result-cache
command (phpstan/phpstan-src@156700b), #6432.memory_limit
file (phpstan/phpstan-src@daf7d55), https://twitter.com/timacdonald87/status/1484804225658146823Bugfixes 🐛
#[ReturnTypeWillChange]
on PHP 7.1-7.4 (ondrejmirtes/BetterReflection@bf36244, phpstan/phpstan-src@639a055), #6414array_filter
with callback that always evaluates to false (#939), thanks @herndlm!Function signature fixes 🤖
Ds\Set::reduce()
to stubs (#942), thanks @ZebulanStanphill!*strlen()
return type to exclude negative integers (#945), thanks @staabm!DatePeriod::getEndDate
declaration (#951), thanks @nyamsprod!v1.4.2
Compare Source
PHP_VERSION_ID
(phpstan/phpstan-src@433511a), #6386, https://github.com/api-platform/core/issues/4614, https://github.com/api-platform/api-platform/issues/2101ObjectType::equals()
when compared toEnumCaseObjectType
(phpstan/phpstan-src@ab0245c), #6394v1.4.1
Compare Source
Improvements 🔧
==
operator for the same types on both sides (phpstan/phpstan-src@e40eff0), #6370, #4413ClassReflection::getBackedEnumType()
method (phpstan/phpstan-src@a0ed2d3)BenevolentUnionType
return type without dynamic return type extension (phpstan/phpstan-src@723dfc5), https://github.com/phpstan/phpstan/discussions/6391Bugfixes 🐛
__unserialize
(#929), thanks @ruudk!UnitEnum
andBackedEnum
(phpstan/phpstan-src@67d3a88), #6385ConstantArrayTypeBuilder
- fix for potential performance problems (phpstan/phpstan-src@86b9306), #6375Function signature fixes 🤖
Set::map()
method to functionMap (#923), thanks @simPod!gnupg_verify()
accepts false fot its signature param (#925), thanks @spaze!random_bytes()
(#926), thanks @staabm!count_chars()
mode-param (#927), thanks @staabm!getdate()
return type (#928), thanks @staabm!v1.4.0
Compare Source
This release fixes 25 issues! 🎉
Major new features 🚀
readonly
properties (RFC)Improvements 🔧
ParametersAcceptorSelector
- message forShouldNotHappenException
(phpstan/phpstan-src@d3c3483), #6328BenevolentUnionType
is covered by BC promise (phpstan/phpstan-src@8f28dc8)Bugfixes 🐛
require
statement (phpstan/phpstan-src@b5a2c8f), #6348ClosureType
(#921), thanks @canvural!random_int()
without args crash (phpstan/phpstan-src@6d7ba0f), #6361Thanks to some internal refactorings listed below, the following issues have been fixed: #5337, #4910, #5316, #5607, #3766, #3858, #3310, #3264, #2806, #5328, #3044, #6184, #3339, #5656, #5362, #3867, #5707
ConstantArrayType
after setting new offset (phpstan/phpstan-src@ec117fa)ConstantArrayTypeBuilder
- preserveConstantArrayType
for integer range offsets (phpstan/phpstan-src@3eab462)ConstantIntegerType
in Scope (phpstan/phpstan-src@d6c7595)Function signature fixes 🤖
gmp_div
(#915), thanks @danielmarschall!PDO::prepare()
might returnfalse
(#916, phpstan/phpstan-src@a9881e3), thanks @staabm!preg_match*
return type signatures (#918), thanks @staabm!v1.3.3
Compare Source
Improvements 🔧
@method
tag forgetCode()
method above child Exception classes (phpstan/phpstan-src@e04cc8d)phpstan/phpstan-src
now uses promoted properties (https://github.com/phpstan/phpstan-src/pull/910)v1.3.2
Compare Source
Improvements
Bugfixes 🐛
Function signature fixes 🤖
false
since PHP 5.4 (#907), thanks @johnbillion!Exception::getCode()
type (phpstan/phpstan-src@1181717)v1.3.1
Compare Source
Bugfixes 🐛
mixed
type not considered nullable (phpstan/phpstan-src@c0aad86), #6293, #6158PDO::pgsqlGetNotify()
call (phpstan/phpstan-src@3624bbb), #6255#!
shebang (phpstan/phpstan-src@c87284a), #6252@mixin
extensions (phpstan/phpstan-src@9ab4e6f), #6300Function signature fixes 🤖
SessionHandler::gc()
(#899), thanks @Khartir!preg_quote
to NonEmptyStringFunctionsReturnTypeExtension (#881), thanks @staabm!v1.3.0
Compare Source
Major new features 🚀
phpstan/phpstan-src
is now PHP 8.0+ only, while the distribution packagephpstan/phpstan
still supports PHP 7.1+.Improvements 🔧
nikic/php-parser
to 4.13.2 (phpstan/phpstan-src@8939964)--allow-empty-baseline
to allow generating empty baseline (#776), thanks @Lctrs!@phpstan-property
,@phpstan-property-read
, and@phpstan-property-write
(#775), thanks @mad-briller!key-of<...>
andvalue-of<...>
types (#800), thanks @ste93cry!ErrorFormatter
(#854), thanks @ruudk!Bugfixes 🐛
echo
isn't callable either. (#777), thanks @johnbillion!$object::class
with Identical (#745), thanks @marmichalski!hasClass()
as case-sensitive (phpstan/phpstan-src@792ce0a), #6096@
operator should use& $errno
check (#889), thanks @samsonasik!Function signature fixes 🤖
trigger_error
(#766), thanks @staabm!array_count_values()
can never contain a zero. (#773), thanks @johnbillion!date_parse
anddate_parse_from_format
functions (#807), thanks @ste93cry!get_resources()
(#837), thanks @MidnightDesign!restore_error_handler
andrestore_exception_handler
always return booleantrue
. (#850), thanks @johnbillion!DateTimeZone
methods (#857), thanks @johnbillion!Set::map()
method toext-ds
stub (#855), thanks @simPod!preg_split
(phpstan/phpstan-src@a16c7ae), thanks @clxmstaab!vimeo/psalm
v4.20.0
Compare Source
What's Changed
Deprecations
Fixes
trait_exists()
always returnsbool
by @Ocramius in https://github.com/vimeo/psalm/pull/7554Internal changes
New Contributors
Full Changelog: vimeo/psalm@4.19.0...v4.20.0
v4.19.0
Compare Source
What's Changed
Deprecations
Features
@psalm-suppress all
by @danog in https://github.com/vimeo/psalm/pull/7431Fixes
self
parsing forpsalm-if-this-is
andpsalm-self-out
by @klimick in https://github.com/vimeo/psalm/pull/7405array_replace
type by @ElisDN in https://github.com/vimeo/psalm/pull/7483Docs
Internal changes
Other changes
New Contributors
Configuration
📅 Schedule: "before 3am on Monday" (UTC).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, 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 has been generated by WhiteSource Renovate. View repository job log here.