phpstan/phpstan
### [`v1.10.11`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.11)
[Compare Source](https://togithub.com/phpstan/phpstan/compare/1.10.10...1.10.11)
# Bleeding edge 🔪
- Fix position variance of static method parameters ([#2313](https://togithub.com/phpstan/phpstan-src/pull/2313)), thanks [@jiripudil](https://togithub.com/jiripudil)!
- Check variance of template types in properties ([#2314](https://togithub.com/phpstan/phpstan-src/pull/2314)), thanks [@jiripudil](https://togithub.com/jiripudil)!
- OverridingMethodRule - include template types in prototype declaring class description (https://github.com/phpstan/phpstan-src/commit/ca2c66cc4dff59ba44d52b82cb9e0aa3256240f3)
*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`:*
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.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](https://phpstan.org/blog/what-is-bleeding-edge)*
# Improvements 🔧
- Helper PHPDoc type: `template-type` (calling `Type::getTemplateType()` method) (https://github.com/phpstan/phpstan-src/commit/b6d0c87db5c418d5ea4a026790f6e4c1df3da184), [https://github.com/phpstan/phpstan/discussions/9053](https://togithub.com/phpstan/phpstan/discussions/9053)
- Some useful advanced PHPDoc types (https://github.com/phpstan/phpstan-src/commit/387ebd5059990086444e993cc0fb40e167cc71c6)
- `enum-string`
- `empty-scalar`
- `non-empty-scalar`
- `non-empty-literal-string`
- `pure-callable`
- `closed-resource`
- `non-empty-mixed`
- `callable-array`
- RuleErrorBuilder - support multiple tips nicely (https://github.com/phpstan/phpstan-src/commit/e06c529ffc64f84c11ef0e6cd0a9725c6862666c)
- StrictComparisonOfDifferentTypesRule - tip for always true comparison between enums (https://github.com/phpstan/phpstan-src/commit/a327965dc58ade31d5ab457435139a283a63f3aa, https://github.com/phpstan/phpstan-src/commit/9850ea7e9833e8929497c3df113dd92c056f54fa)
- Handle invalid type aliases better (https://github.com/phpstan/phpstan-src/commit/fc5515a516c6573c01ca786decfb5a509771ab36), [#9077](https://togithub.com/phpstan/phpstan/issues/9077), [#8473](https://togithub.com/phpstan/phpstan/issues/8473)
- Uses phpstan/phpdoc-parser 1.17
- https://github.com/phpstan/phpdoc-parser/commit/bfec8729f7e23c40670f98e27e694cfdb13fc12a
- https://github.com/phpstan/phpdoc-parser/commit/d3753fcb3abc6f78f5de6f72153d4b9c99c72dee
# Bugfixes 🐛
- Be smarter about new array keys after assignment (https://github.com/phpstan/phpstan-src/commit/6c32371f7c7b8aa330bf7c78b680bc4347f8ce37), [#9131](https://togithub.com/phpstan/phpstan/issues/9131), [#8900](https://togithub.com/phpstan/phpstan/issues/8900), [#8222](https://togithub.com/phpstan/phpstan/issues/8222)
- Fix `StaticType::isSuperTypeOf()` for subtypes of `ObjectType` (https://github.com/phpstan/phpstan-src/commit/b439fed7b19fc11287237c85bc50baf73fae0158), [#9142](https://togithub.com/phpstan/phpstan/issues/9142)
- `TypehintHelper::decideTypeFromReflection()` should accept correct ancestor's ClassReflection, not just class name (https://github.com/phpstan/phpstan-src/commit/297a9feca4c5df2e809bc7393959694566d23344)
# Function signature fixes 🤖
- Add types for `IntlPartsIterator` ([#2324](https://togithub.com/phpstan/phpstan-src/pull/2324)), thanks [@zonuexe](https://togithub.com/zonuexe)!
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
1.10.10
->1.10.11
Release Notes
phpstan/phpstan
### [`v1.10.11`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.11) [Compare Source](https://togithub.com/phpstan/phpstan/compare/1.10.10...1.10.11) # Bleeding edge 🔪 - Fix position variance of static method parameters ([#2313](https://togithub.com/phpstan/phpstan-src/pull/2313)), thanks [@jiripudil](https://togithub.com/jiripudil)! - Check variance of template types in properties ([#2314](https://togithub.com/phpstan/phpstan-src/pull/2314)), thanks [@jiripudil](https://togithub.com/jiripudil)! - OverridingMethodRule - include template types in prototype declaring class description (https://github.com/phpstan/phpstan-src/commit/ca2c66cc4dff59ba44d52b82cb9e0aa3256240f3) *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`:* includes: - vendor/phpstan/phpstan/conf/bleedingEdge.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](https://phpstan.org/blog/what-is-bleeding-edge)* # Improvements 🔧 - Helper PHPDoc type: `template-type` (calling `Type::getTemplateType()` method) (https://github.com/phpstan/phpstan-src/commit/b6d0c87db5c418d5ea4a026790f6e4c1df3da184), [https://github.com/phpstan/phpstan/discussions/9053](https://togithub.com/phpstan/phpstan/discussions/9053) - Some useful advanced PHPDoc types (https://github.com/phpstan/phpstan-src/commit/387ebd5059990086444e993cc0fb40e167cc71c6) - `enum-string` - `empty-scalar` - `non-empty-scalar` - `non-empty-literal-string` - `pure-callable` - `closed-resource` - `non-empty-mixed` - `callable-array` - RuleErrorBuilder - support multiple tips nicely (https://github.com/phpstan/phpstan-src/commit/e06c529ffc64f84c11ef0e6cd0a9725c6862666c) - StrictComparisonOfDifferentTypesRule - tip for always true comparison between enums (https://github.com/phpstan/phpstan-src/commit/a327965dc58ade31d5ab457435139a283a63f3aa, https://github.com/phpstan/phpstan-src/commit/9850ea7e9833e8929497c3df113dd92c056f54fa) - Handle invalid type aliases better (https://github.com/phpstan/phpstan-src/commit/fc5515a516c6573c01ca786decfb5a509771ab36), [#9077](https://togithub.com/phpstan/phpstan/issues/9077), [#8473](https://togithub.com/phpstan/phpstan/issues/8473) - Uses phpstan/phpdoc-parser 1.17 - https://github.com/phpstan/phpdoc-parser/commit/bfec8729f7e23c40670f98e27e694cfdb13fc12a - https://github.com/phpstan/phpdoc-parser/commit/d3753fcb3abc6f78f5de6f72153d4b9c99c72dee # Bugfixes 🐛 - Be smarter about new array keys after assignment (https://github.com/phpstan/phpstan-src/commit/6c32371f7c7b8aa330bf7c78b680bc4347f8ce37), [#9131](https://togithub.com/phpstan/phpstan/issues/9131), [#8900](https://togithub.com/phpstan/phpstan/issues/8900), [#8222](https://togithub.com/phpstan/phpstan/issues/8222) - Fix `StaticType::isSuperTypeOf()` for subtypes of `ObjectType` (https://github.com/phpstan/phpstan-src/commit/b439fed7b19fc11287237c85bc50baf73fae0158), [#9142](https://togithub.com/phpstan/phpstan/issues/9142) - `TypehintHelper::decideTypeFromReflection()` should accept correct ancestor's ClassReflection, not just class name (https://github.com/phpstan/phpstan-src/commit/297a9feca4c5df2e809bc7393959694566d23344) # Function signature fixes 🤖 - Add types for `IntlPartsIterator` ([#2324](https://togithub.com/phpstan/phpstan-src/pull/2324)), thanks [@zonuexe](https://togithub.com/zonuexe)!Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 Mend Renovate. View repository job log here.