phpstan/phpstan
### [`v0.12.79`](https://togithub.com/phpstan/phpstan/releases/0.12.79)
[Compare Source](https://togithub.com/phpstan/phpstan/compare/0.12.78...0.12.79)
# Improvements 🔧
- Support for union type as `@template` type bound ([phpstan/phpstan-src@`ac7b49e`](https://togithub.com/phpstan/phpstan-src/commit/ac7b49ef411606ca90abf973f13f7d1aeea6b1d7)), [#3769](https://togithub.com/phpstan/phpstan/issues/3769)
- Support `int` and `string` as `@template` type bound ([phpstan/phpstan-src@`768bfab`](https://togithub.com/phpstan/phpstan-src/commit/768bfab11b313811c2feb34a16f50ff8ff3fadd5))
- Type-specifying extension for `ReflectionClass::isSubclassOf()` ([phpstan/phpstan-src@`d3b5d60`](https://togithub.com/phpstan/phpstan-src/commit/d3b5d60d278861a51b4ce282261d7dea7b9db340)), [#4577](https://togithub.com/phpstan/phpstan/issues/4577)
- Update `BetterReflection` to version that uses PHPStan namespace instead of random prefixed one ([phpstan/phpstan-src@`06ef13e`](https://togithub.com/phpstan/phpstan-src/commit/06ef13e9c30626f657b2be10030cf0c857b1dc35)). See [rectorphp/rector#5665](https://togithub.com/rectorphp/rector/pull/5665)
- Update PhpStorm stubs ([phpstan/phpstan-src@`5aa8a55`](https://togithub.com/phpstan/phpstan-src/commit/5aa8a5589d73ca3e8b87fc6a6110bc92ec766be7))
- Add `PhpPropertyReflection::getNativeReflection()` ([phpstan/phpstan-src@`5fad625`](https://togithub.com/phpstan/phpstan-src/commit/5fad625b7770b9c5beebb19ccc1a493839308fb4))
# Bleeding edge 🔪
- Type inference of `new $string` leads to `object`, not `mixed` ([phpstan/phpstan-src@`78a9f05`](https://togithub.com/phpstan/phpstan-src/commit/78a9f057d7a1c73cc34af70db406b9392ce0ca3a))
_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._
# Bugfixes 🐛
- Fix `GenericObjectType::isSuperTypeOf()` for covariant template types ([phpstan/phpstan-src@`3f6de01`](https://togithub.com/phpstan/phpstan-src/commit/3f6de01ead2e159413873b63d51e29e9b27a7c91))
- Fix `method_exists()` after `new $class` ([phpstan/phpstan-src@`70756b0`](https://togithub.com/phpstan/phpstan-src/commit/70756b0939512ff0408299607b4d073f599df244)), [#4579](https://togithub.com/phpstan/phpstan/issues/4579)
- Fix `--debug` message ([#455](https://togithub.com/phpstan/phpstan-src/pull/455)), thanks [@alamirault](https://togithub.com/alamirault)!
- Keep iterable key type and value type when subtracting from iterable ([phpstan/phpstan-src@`c1f7aaf`](https://togithub.com/phpstan/phpstan-src/commit/c1f7aafc47d007cbb82114ce1fb306a971333f26)), [#4498](https://togithub.com/phpstan/phpstan/issues/4498)
- Type description verbosity - be more verbose when invariant template type is involved ([phpstan/phpstan-src@`d97ddee`](https://togithub.com/phpstan/phpstan-src/commit/d97ddee4d53fa82962452f2b9fe60c334b9149f9))
- Fixed inferring return type coming from array_map ([phpstan/phpstan-src@`ea7e0ac`](https://togithub.com/phpstan/phpstan-src/commit/ea7e0ac0cb46c8efecdd7be795d6dc8ee53bb094)), [#4587](https://togithub.com/phpstan/phpstan/issues/4587)
- TemplateTypeCheck - look for nested unsupported types ([phpstan/phpstan-src@`756af18`](https://togithub.com/phpstan/phpstan-src/commit/756af18c18f9f2c8156b6d398ed59e0ef9bf571e))
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: 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 contains the following updates:
0.12.78
->0.12.79
Release Notes
phpstan/phpstan
### [`v0.12.79`](https://togithub.com/phpstan/phpstan/releases/0.12.79) [Compare Source](https://togithub.com/phpstan/phpstan/compare/0.12.78...0.12.79) # Improvements 🔧 - Support for union type as `@template` type bound ([phpstan/phpstan-src@`ac7b49e`](https://togithub.com/phpstan/phpstan-src/commit/ac7b49ef411606ca90abf973f13f7d1aeea6b1d7)), [#3769](https://togithub.com/phpstan/phpstan/issues/3769) - Support `int` and `string` as `@template` type bound ([phpstan/phpstan-src@`768bfab`](https://togithub.com/phpstan/phpstan-src/commit/768bfab11b313811c2feb34a16f50ff8ff3fadd5)) - Type-specifying extension for `ReflectionClass::isSubclassOf()` ([phpstan/phpstan-src@`d3b5d60`](https://togithub.com/phpstan/phpstan-src/commit/d3b5d60d278861a51b4ce282261d7dea7b9db340)), [#4577](https://togithub.com/phpstan/phpstan/issues/4577) - Update `BetterReflection` to version that uses PHPStan namespace instead of random prefixed one ([phpstan/phpstan-src@`06ef13e`](https://togithub.com/phpstan/phpstan-src/commit/06ef13e9c30626f657b2be10030cf0c857b1dc35)). See [rectorphp/rector#5665](https://togithub.com/rectorphp/rector/pull/5665) - Update PhpStorm stubs ([phpstan/phpstan-src@`5aa8a55`](https://togithub.com/phpstan/phpstan-src/commit/5aa8a5589d73ca3e8b87fc6a6110bc92ec766be7)) - Add `PhpPropertyReflection::getNativeReflection()` ([phpstan/phpstan-src@`5fad625`](https://togithub.com/phpstan/phpstan-src/commit/5fad625b7770b9c5beebb19ccc1a493839308fb4)) # Bleeding edge 🔪 - Type inference of `new $string` leads to `object`, not `mixed` ([phpstan/phpstan-src@`78a9f05`](https://togithub.com/phpstan/phpstan-src/commit/78a9f057d7a1c73cc34af70db406b9392ce0ca3a)) _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._ # Bugfixes 🐛 - Fix `GenericObjectType::isSuperTypeOf()` for covariant template types ([phpstan/phpstan-src@`3f6de01`](https://togithub.com/phpstan/phpstan-src/commit/3f6de01ead2e159413873b63d51e29e9b27a7c91)) - Fix `method_exists()` after `new $class` ([phpstan/phpstan-src@`70756b0`](https://togithub.com/phpstan/phpstan-src/commit/70756b0939512ff0408299607b4d073f599df244)), [#4579](https://togithub.com/phpstan/phpstan/issues/4579) - Fix `--debug` message ([#455](https://togithub.com/phpstan/phpstan-src/pull/455)), thanks [@alamirault](https://togithub.com/alamirault)! - Keep iterable key type and value type when subtracting from iterable ([phpstan/phpstan-src@`c1f7aaf`](https://togithub.com/phpstan/phpstan-src/commit/c1f7aafc47d007cbb82114ce1fb306a971333f26)), [#4498](https://togithub.com/phpstan/phpstan/issues/4498) - Type description verbosity - be more verbose when invariant template type is involved ([phpstan/phpstan-src@`d97ddee`](https://togithub.com/phpstan/phpstan-src/commit/d97ddee4d53fa82962452f2b9fe60c334b9149f9)) - Fixed inferring return type coming from array_map ([phpstan/phpstan-src@`ea7e0ac`](https://togithub.com/phpstan/phpstan-src/commit/ea7e0ac0cb46c8efecdd7be795d6dc8ee53bb094)), [#4587](https://togithub.com/phpstan/phpstan/issues/4587) - TemplateTypeCheck - look for nested unsupported types ([phpstan/phpstan-src@`756af18`](https://togithub.com/phpstan/phpstan-src/commit/756af18c18f9f2c8156b6d398ed59e0ef9bf571e))Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: 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.