Update dependency phpstan/phpstan to v0.11.12 #9
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.11.5
->0.11.12
Release Notes
phpstan/phpstan
v0.11.12
Compare Source
Fix inherited
@return $this
/@return static
(56b3eb2
), #1648, #2278v0.11.11
Compare Source
Fixed when the tip of the day about inferrable private property type is showed (
5c7d447
), #2276v0.11.10
Compare Source
Improvements
6771e62
) - turn on withinferPrivatePropertyTypeFromConstructor: true
@inheritdoc
without curly braces (#2054), thanks @daniel-iwaniec!0e3914e
). Can be turned off withtipsOfTheDay: false
.Bugfixes
Type::isSubtypeOf()
andaccepts()
by introducingisAcceptedBy()
(08e0288
), #2230, #2267v0.11.9
Compare Source
Improvements
c4ed3c7
), #2173, thanks @arnaud-lb for the work on phpdoc-parser (phpstan/phpdoc-parser#30)!f89d730
)133e3b7
)@var
annotation above array destricturing (1302f31
,a3812ef
), #2158declare(strict_types = 1)
(ed81c3a
)697db4b
)01b9f60
)New_
in classes without constructor (5fc3a8d
), phpstan/phpstan-doctrine#6253c9f3f
)Bleeding edge
See explanation in previous release notes.
178953d
)9155530
)78e04aa
)@var
annotation tag - level 2 (25101c4
)@var
tags - level 2 (42a8618
)@var
tags - level 2 (d17e459
)@var
above more statement types (7d60950
)Bugfixes
dd60e64
), #21603076f69
), #2158fddcbff
,9caafe1
), #2118CallableType::accepts()
- treat mixed as any (736613c
)is_callable()
with an array with two items results inmethod_exists()
(886e636
), #2174e937b16
), #1963iterable<Foo>
not acceptingiterable<mixed>
(7815a7c
), #2224array&nonEmpty
not being accepted as an array (fdf71c6
), #203939dba66
), #1724excludes_analyse
(#1996), thanks @adaamz!Function signature fixes
zip_entry_read
return type (#2202), thanks @phrounz!v0.11.8
Compare Source
Improvements
@deprecated
phpDoc tag (#1983), thanks @mglaman! Drupal community will be especially happy about this :)Bugfixes
2bf4963
)__COMPILER_HALT_OFFSET__
" (#2137), thanks @arnaud-lb!Function signature fixes
ZipArchive::getStream()
(#2133), thanks @tux-rampage!v0.11.7
Compare Source
Improvements
+
or*
.rules
andconditionalTags
neon extensions (080fd29
,5e160d4
)105e83e
)%rootDir%
and%currentWorkingDirectory%
inincludes
section (4edbe7c
), #202031b8c96
)Bleeding edge
See explanation in previous release notes.
parameters
config section (54a125d
)3d3e183
)Bugfixes
6b65c31
)63c7d13
)2613b75
)50b5941
), #2093ObjectType::hasOffsetValueType()
is maybe at most (aa08ef3
), #20934dc595c
), #21217346583
,76e733c
)Function signature fixes
sodium_crypto_scalarmult_base
signature (#2126), thanks @szepeviktor!CachingIterator::current
return type (#2129), thanks @bhaal-nig!Redis::close
returns bool (#2131), thanks @spaze!v0.11.6
Compare Source
Improvements
sprintf()
dynamic return type extension (664215a
)@throws void
phpDoc (#2066), thanks @pepakriz!$container
variable with DI container forautoload_files
andbootstrap
(4824bba
)a80456d
), #2019ObjectType::setOffsetValueType()
looks intoArrayAccess::offsetSet()
method definition (#1898), thanks @adaamz!Bleeding edge
See explanation in previous release notes.
mixed
,object
and concrete class objects now understands if their subtype is being subtracted from them. So for example a prior check fornull
onmixed
now makes PHPStan understand that the type does not containnull
anymore. This is especially useful for parent and child classes. See examples.Bugfixes
%rootDir%
in phpstan-shim (f17a5a5
)array_fill
analysis performance by falling back to ArrayType for large arrays (#2088), thanks @dsech!* Fixed a couple of problems with anonymous classes (
4b52556
,6b9a80e
), #1839Function signature fixes
finfo
return types (#2041), thanks @dmitrydymarchuk!glob
can return false (#2037), thanks @orklah!ReadPreference
constructor (#2052), thanks @Riimu!DOMNamedNodeMap::count()
, thanks @villfa!* Fix "passed by reference arguments" on several methods (#2083), thanks @moufmouf!
Set::join()
return type (#2077), thanks @enumag!documentElement
can be null (#2089), thanks @frederikbosch!array_replace
/array_replace_recursive
return types (36492d2
)ZipArchive::getFromIndex
andZipArchive::getNameIndex
can return false (#2094), thanks @tominventisbe!imap_thread
signature to return false (#1933), thanks @Slamdunk!XMLWriter::openMemory
(#1862), thanks @SuRaMoN!IntlDateFormatter::create()
(#1948), thanks @ADmad!Renovate 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 if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.