Bump phpstan/phpstan from 0.12.96 to 0.12.97
Created by: dependabot[bot]
Bumps phpstan/phpstan from 0.12.96 to 0.12.97.
Release notes
Sourced from phpstan/phpstan's releases.
0.12.97
Improvements
🔧
- Support for
literal-string
PHPDoc type inspired byis_literal()
RFC (https://wiki.php.net/rfc/is_literal), #5507- Support
bool
as template type bound (https://github.com/phpstan/phpstan-src/commit/9d191f9abb00b3c293a26934ba1b92bb413569b4)- Support
float
as template type bound (https://github.com/phpstan/phpstan-src/commit/4e7d6c155c52e11f81bcabf75f84e14a2e0e1727), #5331- Make
ReflectionAttribute
generic (#640, #643), thanks@vhenzl
!- Implemented math on IntegerRangeType and ConstantIntegerType (#637), #4843, thanks
@staabm
!- Support
non-empty-array
type in[] != $arr
conditions (#649), thanks@staabm
!- Optimization - do not sort huge unions (https://github.com/phpstan/phpstan-src/commit/5a44c297adb6ded659c3206e9e9525f60a37d55b), #5500
- Optimize calculating scalar values from huge unions (https://github.com/phpstan/phpstan-src/commit/a6ca5f7a7ef60f20ca9c2f5ec5410d28224e2db8), #5527
- Update PHP 8 stubs (https://github.com/phpstan/phpstan-src/commit/a82605fbb80c5b09614ad6b82d872f2833eecce8)
Bugfixes
🐛
- Reflection: fixed context of invoking a trait method (https://github.com/phpstan/phpstan-src/commit/89ceb6a9790d534b1d101b76317e487f0ee5d0c8), #5497
- Union normalization - do not take template types apart (https://github.com/phpstan/phpstan-src/commit/3b17c0e1d5a712f75f85ab604cb84741bdf38c72)
self::CONSTANT
can be precise even with PHPDoc type (https://github.com/phpstan/phpstan-src/commit/5010ef459465fa27a3b0fe3593bdd445b6dae8f3), #5517- Fix CallableType's string type assumptions (https://github.com/phpstan/phpstan-src/commit/9a9f19380499a4836aa89d46a29477aed17b5da5)
- OptimizedDirectorySourceLocator - fixed crash when parsing
Text.php
ofnl_BE
from Faker (https://github.com/phpstan/phpstan-src/commit/a09a98d251002a061c96e7a49132693d46a0dee9), #5525- Fix
?parent
in return type (https://github.com/phpstan/phpstan-src/commit/30c9b01fd12bf2a1f655b369629c3a38acff978e), #5529- Fixed missing return rule for native mixed type (https://github.com/phpstan/phpstan-src/commit/03d8312e3ea62bb2c6a3ed89a88a6d86101a5594)
- Make mixin method static if there's
__callStatic()
in the class (https://github.com/phpstan/phpstan-src/commit/114a38f87a7ce2e7a53d55454a61cdfd832ea69f), #5536- added
sizeof()
as alias ofcount()
for Smaller/SmallerOrEqual (#647, #648), #4843, thanks@staabm
!- Refactor PreInc and PreDec (https://github.com/phpstan/phpstan-src/commit/a6a23dcaf6254c182e39117cbeb9f8087c1ee22c), #1870
- Fix inferring
TemplateUnionType
((https://github.com/phpstan/phpstan-src/commit/1b5710a3aa87a3d475d565c8ded12de170ee6cb6), #5562Function signature fixes
🤖
- substr_count returns non-negative integer (https://github.com/phpstan/phpstan-src/commit/8db058a52c763408f30cd914d743d930ff3e7e8e), #5513
- mb_str_split() / str_split() always returns
non-empty-array
(#633), thanks@staabm
!- Third parameter of
sodium_base642bin()
is optional. (#644), thanks@tehbeard
!- Make
filter_var()
returnnon-empty-string
if input is non-empty (#642), thanks@devbanana
!- use positive-int in
iterator_count()
/iterator_apply()
(#646), thanks@staabm
!- use positive-int in
array_count_values()
(#645), thanks@staabm
!filter_var()
should return non empty string only when it will not be sanitized (#650), thanks@devbanana
!- Sync
parse_url
signature with PHP 8 (https://github.com/phpstan/phpstan-src/commit/f7c6464067e04d5fc3f11b6f624a29fee067b1be)
Commits
-
a8867e6
PHPStan 0.12.97 -
7eb0dfc
Updated PHPStan to commit 3d6a42179375a49e31888da3a645a3a94a65e44d -
00e1ecc
Updated PHPStan to commit 7f9f3bed1571d21273de367affe3292abfd86c2b -
7f0ea5e
Updated PHPStan to commit 0fcd93bbe86b460c077d8100c37aab5637e1a7a0 -
9ea1676
Updated PHPStan to commit 1b5710a3aa87a3d475d565c8ded12de170ee6cb6 -
b91c5e7
Updated PHPStan to commit f6e4f87a2d19236c322176871ffe2b0f34d16efb -
bf6ba24
Updated PHPStan to commit a6a23dcaf6254c182e39117cbeb9f8087c1ee22c -
5ac440c
Updated PHPStan to commit c7370959e101c0b7503ddfffe08eb1ad942b1c51 -
4563d6f
Updated PHPStan to commit 6e90da1413bfbd38f3a68d244c3021d6be2e8c01 -
ad744f5
Updated PHPStan to commit b105b9ebe3496c1c1f7ad9757a1a143ffedb88a7 - Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)