chore(deps): update dependency phpstan/phpstan to v0.12.91 #237
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.81
->0.12.91
Release Notes
phpstan/phpstan
v0.12.91
Compare Source
Improvements 🔧
php.ini
in child workers (#559), thanks @yangchaobj!strval()
dynamic return type extension (#568), thanks @jlherren!intval()
,boolval()
,floatval()
(#570), #4848, #5162, thanks @jlherren!next()
dynamic return type extension (phpstan/phpstan-src@599f59b), #5253nikic/php-parser
to 4.11.0 (phpstan/phpstan-src@e42ae89)Bugfixes 🐛
object
forReflectionClass
andReflectionMethod
constructor throw types (#566), #5195, thanks @VincentLanglet!!empty
(#569), #3784, #3700, #3297, thanks @ArtemGoutsoul!v0.12.90
Compare Source
Improvements 🔧
getTraits()
recursive (#557), thanks @IAmRGroot!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
Bugfixes 🐛
never
return type in PHPDoc wins over native type (phpstan/phpstan-src@2c976fb), #5089ClosureType
typeOnly description is justClosure
(phpstan/phpstan-src@476520d), #5164BenevolentUnionType
(phpstan/phpstan-src@2abb92e), #5169Function signature fixes 🤖
null
forfile_put_contents()
$context
argument (#558), thanks @steevanb!v0.12.89
Compare Source
Improvements 🔧
ExceptionTypeResolver
as an interface allowing for custom implementations (phpstan/phpstan-src@a125304, phpstan/phpstan-src@dec03af), #5044RecursiveArrayIterator
(phpstan/phpstan-src@8c33955)Bleeding edge 🔪
int|string
(phpstan/phpstan-src@724c8ba), #3753If 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
Bugfixes 🐛
TARGET_PROPERTY
attributes on promoted properties (#528), #4418, thanks @dbrekelmans!IntegerRangeType
(phpstan/phpstan-src@d23b4b7)Function signature fixes 🤖
implode()
with named arguments (phpstan/phpstan-src@18f8473), #5018intdiv()
throw extension (#527), thanks @VincentLanglet!SimpleXMLElement
constructor throw type extension (#532), thanks @VincentLanglet!uopz_set_hook
fixes (phpstan/phpstan-src@4effc89)gmp_div
,odbc_exec
andunregister_tick_function
(#533), thanks @danielmarschall!phpstorm-stubs
(phpstan/phpstan-src@bba6631)stream_bucket_make_writeable
(#537), thanks @bytestream!toPHP
optional (#543), thanks @franmomu!SplFileObject::fgetcsv()
(#479), thanks @VincentLanglet!mysqli_get_client_version()
(#545), thanks @johnbillion!number_format
(#553), thanks @BackEndTea!v0.12.88
Compare Source
Improvements 🔧
editorUrl
to add clickable file URLs to output (#515), thanks @ThomasLandauer!Bugfixes 🐛
proc_open
function is disabled (#514), thanks @mvorisek!excludePaths
in the same config hierarchy (phpstan/phpstan-src@e7ac788), #4561\
is valid class name (phpstan/phpstan-src@428baf5), #5002is_array()
false positive (phpstan/phpstan-src@187921e), #4999TemplateUnionType
as part of intersection (phpstan/phpstan-src@4a45db5), #5000*
ignore path whenopen_basedir
is set (#519), thanks @mvorisek!Function signature fixes 🤖
number_format()
with named arguments (#524), thanks @matyx!DateInterval
extension (#520), thanks @VincentLanglet!v0.12.87
Compare Source
Major new feature 🚀
New exceptions-related rules
@throws
@throws
that aren't actually thrownRead this article for more details »
Improvements 🔧
composer/xdebug-handler
(phpstan/phpstan-src@0b6b602)Bugfixes 🐛
throw
expression throw point (phpstan/phpstan-src@1e4f2e1)Function signature fixes 🤖
getopt()
return type (phpstan/phpstan-src@94b6c03), #4987, thanks @dktapps!v0.12.86
Compare Source
Improvements 🔧
@throws
support (phpstan/phpstan-src@48bfa70)Bugfixes 🐛
new ReflectionClass()
can throwReflectionException
(phpstan/phpstan-src@00d3ef4)DateTime
andDateTimeImmutable
constructor does not always throw Exception (phpstan/phpstan-src@181f75c)Function signature fixes 🤖
wincache_ucache_inc
andwincache_ucache_dec
(phpstan/phpstan-src@671f404), #4952Redis::scan()
signature (phpstan/phpstan-src@8fe9e60), #4929IntlDateFormatter::parse
can define variable by reference (#509), thanks @francescolaffi!v0.12.85
Compare Source
Improvements 🔧
Bugfixes 🐛
===
and!==
type inference withtreatPhpDocTypesAsCertain: false
(#476), thanks @ruudk!yield
has implicit throw point (phpstan/phpstan-src@033aeff), #4863is_dir()
and similar function values for nonexistent files (phpstan/phpstan-src@1eaef04), #4816Function signature fixes 🤖
date_create_from_format
anddate_create_immutable_from_format
(#502), thanks @pascalheidmann!v0.12.84
Compare Source
Major new feature 🚀
Local type aliases
Thanks to @jiripudil and his PR phpstan/phpstan-src#460, you can now enjoy
@phpstan-type
and@phpstan-import-type
in class-level PHPDoc. See the documentation for more details.Improvements 🔧
AlwaysUsedClassConstantsExtension
interface (#495), #4859, thanks @jdecool!Bugfixes 🐛
unlink()
also clears stat cache (phpstan/phpstan-src@63d0670), #4797Closure::bind()
(phpstan/phpstan-src@566b44b), #4808new $expr()
(phpstan/phpstan-src@8463afd), #4806$expr::foo()
(phpstan/phpstan-src@8c7cf85), #4805require
/require_once
for #4836 via a fake read (#491), thanks @rrazor!Function signature fixes 🤖
rediscluster
inspections (#493), thanks @sudo-plz!array_sum
return type (#494), thanks @VincentLanglet!v0.12.83
Compare Source
Improvements 🔧
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
Bugfixes 🐛
$foo ?? false
pattern when making sure variable exists (phpstan/phpstan-src@c4cc668), #560mt_rand
andrand
are not pure (phpstan/phpstan-src@edc8446)random_int
andrandom_bytes
are not deterministic (phpstan/phpstan-src@f36fa71), #4190is_file()
calls and similar only afterclearstatcache()
(phpstan/phpstan-src@bcc8d61)Closure::bind
(#489), thanks @VincentLanglet!array_sum()
dynamic return type extension (#490), thanks @VincentLanglet!NativeMethodReflection::hasSideEffects()
(phpstan/phpstan-src@98fb540), #4231, #4287count()
(phpstan/phpstan-src@7b417c7), #4700Function signature fixes 🤖
v0.12.82
Compare Source
Improvements 🔧
@use
(phpstan/phpstan-src@8766923), #4423RecursiveIterator
generic (phpstan/phpstan-src@82596f5), #4718Bugfixes 🐛
static::
preserves generic types (phpstan/phpstan-src@d4e0177), #3251, #2231static
type in the typesystem, not in scope (#474), #4213, #4648, #3523, #3120, #1652, #4267static
in parameter type in implemented interfaces (phpstan/phpstan-src@d225a68), #4707, #3118parent::
preserves generic types (phpstan/phpstan-src@4acbc6c), #2231, #2621, #3537, #3251::class
constant (phpstan/phpstan-src@431905c), #4713, #4066%h
and%H
in printf/sprintf (phpstan/phpstan-src@0cbbfba), #4717Function signature fixes 🤖
XMLReader::open()
return type (Fix XMLReader::open() return type phpstan/phpstan-src#456), thanks @jeroennoten!Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 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.