Bump phpstan/phpstan from 0.12.96 to 0.12.98
Created by: dependabot[bot]
Bumps phpstan/phpstan from 0.12.96 to 0.12.98.
Release notes
Sourced from phpstan/phpstan's releases.
0.12.98
Allow dynamic list of stub files thanks to StubFilesExtension (https://github.com/phpstan/phpstan-src/commit/2ba9332d29c1acdde0f85a2781308d2e8972f00e), phpstan/phpstan-symfony#195
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
-
3bb7cc2
PHPStan 0.12.98 -
e6f4fa1
Updated PHPStan to commit 0ebfea013b4d625bc0bc31642679e85f78b456ca -
bebb143
Updated PHPStan to commit a4991f0afd539ef8e4bdd8317f9ffa1c141b4394 -
653e65c
Updated PHPStan to commit 2ba9332d29c1acdde0f85a2781308d2e8972f00e -
9c06b8b
Updated PHPStan to commit 23b1c7fef05dd3f36d3c46c1c83ec73003a9b1ee -
92e61a3
Update Rector integration test -
4a35ae9
Update type-system.md -
3268b69
Update phpdoc-types.md -
993f4aa
Laravel in integration tests -
cfd16c9
Bump bref/bref from 1.2.7 to 1.2.13 in /playground-runner - 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)