Update dependency phpstan/phpstan to v1 - abandoned #26
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:
0.12.11
->1.4.8
Release Notes
phpstan/phpstan
v1.4.8
Compare Source
Improvements 🔧
ignoreErrors
regexes during DIC compilation (save time in each run) (phpstan/phpstan-src@692158c), #6693parametersSchema
only during DIC compilation (phpstan/phpstan-src@50f25e9)==
and===
expression (#1046), thanks @herndlm!strtotime()
with constant strings (#1045), thanks @Seldaek!Bugfixes 🐛
is_subclass_of
with same class (#1044), #6305, thanks @herndlm!ArrayType::traverse()
- create emptyConstantArrayType
in case ofnever
(phpstan/phpstan-src@8c1dfc1)v1.4.7
Compare Source
This release fixes 43 issues! 🎉
Improvements 🔧
phpstan.dist.neon
as a config file (#1006), #6561, thanks @b1rdex!str_repeat
(#1030), #6679, thanks @staabm!TypeUtils::generalizeType()
(phpstan/phpstan-src@2674577)Bugfixes 🐛
sizeof()
when usingunset()
(#971), #6488, thanks @staabm!TemplateType::isSubTypeOf()
andTemplateType::isAcceptedBy()
(#1001), #6589, thanks @arnaud-lb!non-empty-string
andstring
should error (#1011), #6624, thanks @staabm!TypeSpecifyingExtension
uses$overwrite=true
(#1011), #6620, thanks @staabm!@template
above a property (phpstan/phpstan-src@53563e9)SpecifiedTypes
forcount()
andstrlen()
in===
expressions (#1021), thanks @herndlm!class-string
during template type inference (#1038), #6505, #6699, thanks @arnaud-lb!class-string
$class
parameter inis_subclass_of()
(#1039), #6698, #5369, thanks @arnaud-lb!EnumCaseObjectType
(phpstan/phpstan-src@9e42896), #6695, #6433is_subclass_of()
foris_a()
(#1040), #6704, thanks @herndlm!ArrayType::castToArrayKeyType()
for booleans (#1033), thanks @jlherren!ArrayColumnFunctionReturnTypeExtension
producing array key types (#1033), #6682, thanks @jlherren!in_array()
for arrays with union value type (phpstan/phpstan-src@4321374), #6705, #5668, #5759, #3314, #5496, #4666, #3892, #5354, #2870Function signature fixes 🤖
set_error_handler()
. (#1008), #6619, thanks @johnbillion!PDOStatement::fetchAll
no longer returns false on PHP8 (#1014), thanks @xPaw!mb_*
fatal errors on php8 with invalid encoding (#969), thanks @staabm!$read
ofstream_select
to be nullable (#1031), thanks @niconoe-!PDOException::getCode()
return type (#1018), #6651, thanks @VincentLanglet!0|positive-int
(bleeding edge) (#1027), thanks @staabm!substr()
return type on PHP < 8 - use benevolent union type (#1036), thanks @Seldaek!\SplFileInfo
(#1034), #6680, thanks @siganushka!setFetchMode
signature withfetch_class
(#1043), thanks @Seldaek!preg_filter
return type extension (#1024), #6664, thanks @staabm!preg_match_all
return type on PHP 8 (#1023), thanks @staabm!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!v1.2.0
Compare Source
Improvements 🔧
new
in initializers - RFC (phpstan/phpstan-src@1a102fe)array_is_list()
- RFC (#770), thanks @canvural!literal-string
with encapsed strings (#768), thanks @craigfrancis!rules
config section by their class name (phpstan/phpstan-src@50cb90d)Bugfixes 🐛
::class
is always considered a classname (phpstan/phpstan-src@da34d3f), #5979@var
tags (phpstan/phpstan-src@2652f2d), #5921Function signature fixes 🤖
v1.1.2
Compare Source
Bugfixes 🐛
=&
) too (phpstan/phpstan-src@74787be), #5935self::
(phpstan/phpstan-src@b5e44f7), #5951pecl_http
(ondrejmirtes/BetterReflection@9f2b6eb, ondrejmirtes/BetterReflection@bdd2523), #5460, thanks @kukulich!Function signature fixes 🤖
v1.1.1
Compare Source
Bugfixes 🐛
/** @​phpstan-ignore-line */
and/** @​phpstan-ignore-next-line */
annotations sometimes not working because of AST (phpstan/phpstan-src@9474696), #4750, #4759, #3834, #3563, #4250, #4798function_exists()
check (phpstan/phpstan-src@28e8c11), #3576function_exists()
similar tois_callable()
(phpstan/phpstan-src@4a98863), #1849v1.1.0
Compare Source
Improvements 🔧
nikic/php-parser
to 4.13.1 (phpstan/phpstan-src@6a64c8a), #5458jetbrains/phpstorm-stubs
(phpstan/phpstan-src@546e87c), #5833PhpStormStubsElementAvailable
attribute injetbrains/phpstorm-stubs
(phpstan/phpstan-src@e41e66a)never
return type - RFC (phpstan/phpstan-src@59be92f)Bugfixes 🐛
Function signature fixes 🤖
get_loaded_extensions()
(#754), thanks @dktapps!call_user_func_array()
support named arguments (#727), thanks @mglaman!phpversion()
does not return false when no arguments are given (#753), thanks @dktapps!v1.0.2
Compare Source
Bugfixes 🐛
Composer
namespace only with static reflection, some classes in PHAR are unprefixed (phpstan/phpstan-src@95754d1), https://github.com/composer/composer/pull/10253Function signature fixes 🤖
array_map
parameter (phpstan/phpstan-src@9433345)connection_aborted()
signature (#715), thanks @staabm!str_split()
signature (#718), thanks @staabm!DateFunctionReturnTypeExtension
: support more precise single-char date-formats (#721), thanks @staabm!$preserve_keys
argument foriterator_to_array()
(#748), thanks [@Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.