phpstan/phpstan
### [`v1.11.5`](https://togithub.com/phpstan/phpstan/releases/tag/1.11.5)
[Compare Source](https://togithub.com/phpstan/phpstan/compare/1.11.4...1.11.5)
# Bleeding edge 🔪
- Check array functions which require stringish values ([#3132](https://togithub.com/phpstan/phpstan-src/pull/3132)), [#11141](https://togithub.com/phpstan/phpstan/issues/11141), [#5848](https://togithub.com/phpstan/phpstan/issues/5848), [#3694](https://togithub.com/phpstan/phpstan/issues/3694), [#11111](https://togithub.com/phpstan/phpstan/issues/11111), thanks [@schlndh](https://togithub.com/schlndh)!
*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 🔧
- When internal errors occur, do not show other reported errors (https://github.com/phpstan/phpstan-src/commit/aa921137be5b510408bc8df9b8b6fe632ed09db5)
- It's important to first solve internal errors before seeing other reported errors
- Inspired by [https://github.com/phpstan/phpstan/discussions/11107](https://togithub.com/phpstan/phpstan/discussions/11107) (ReviewDog was eating up important errors)
- Show internal errors nicely in PHPStan Pro
# Bugfixes 🐛
- Fix bug in `get_debug_type()` DynamicFunctionReturnTypeExtension ([#3128](https://togithub.com/phpstan/phpstan-src/pull/3128)), thanks [@patrickkusebauch](https://togithub.com/patrickkusebauch)!
- Include path when counting errors ignored by identifier ([#3154](https://togithub.com/phpstan/phpstan-src/pull/3154)), [#11177](https://togithub.com/phpstan/phpstan/issues/11177), thanks [@pilif](https://togithub.com/pilif)!
- Implement bit shift operation on integers and unions ([#3145](https://togithub.com/phpstan/phpstan-src/pull/3145)), thanks [@thg2k](https://togithub.com/thg2k)!
- Fix division type result with even integer range ([#3152](https://togithub.com/phpstan/phpstan-src/pull/3152)), thanks [@thg2k](https://togithub.com/thg2k)!
- Solve identical comparison bug in call-site variance ([#3153](https://togithub.com/phpstan/phpstan-src/pull/3153)), [#11161](https://togithub.com/phpstan/phpstan/issues/11161), [#10697](https://togithub.com/phpstan/phpstan/issues/10697), thanks [@VincentLanglet](https://togithub.com/VincentLanglet)!
# Function signature fixes 🤖
- `gnupg_init()` `options` parameter is optional ([#3129](https://togithub.com/phpstan/phpstan-src/pull/3129)), thanks [@yphoenix](https://togithub.com/yphoenix)!
- Update outdated `RedisCluster::__construct` signature ([#3130](https://togithub.com/phpstan/phpstan-src/pull/3130)), [#11158](https://togithub.com/phpstan/phpstan/issues/11158), thanks [@wolfgangzwiauer](https://togithub.com/wolfgangzwiauer)!
- Improve image related functions signature ([#3127](https://togithub.com/phpstan/phpstan-src/pull/3127)), thanks [@thg2k](https://togithub.com/thg2k)!
- Update/fix ext-amqp signatures ([#3139](https://togithub.com/phpstan/phpstan-src/pull/3139)), thanks [@ben-challis](https://togithub.com/ben-challis)!
- fix `AMQPQueue::unbind()` routingKey type ([#3143](https://togithub.com/phpstan/phpstan-src/pull/3143)), thanks [@ben-challis](https://togithub.com/ben-challis)!
- Add parameter definitions to `AMQPQueue::consume()` callback ([#3144](https://togithub.com/phpstan/phpstan-src/pull/3144)), [#9445](https://togithub.com/phpstan/phpstan/issues/9445), thanks [@ben-challis](https://togithub.com/ben-challis)!
- Add int ranges to AMQP typings ([#3146](https://togithub.com/phpstan/phpstan-src/pull/3146)), thanks [@ben-challis](https://togithub.com/ben-challis)!
- Various fixes to the return signature of `IntlDateFormatter` methods ([#3149](https://togithub.com/phpstan/phpstan-src/pull/3149)), thanks [@chosten](https://togithub.com/chosten)!
- Fix `Exception::getTrace()` return type (https://github.com/phpstan/phpstan-src/commit/492cd89932d873147cdf7acf49c88d432cbce69f)
- fix posix_getpwuid ([#3157](https://togithub.com/phpstan/phpstan-src/pull/3157)), thanks [@pistej](https://togithub.com/pistej)!
# Internals 🔍
- Regression test ([#3136](https://togithub.com/phpstan/phpstan-src/pull/3136)), thanks [@staabm](https://togithub.com/staabm)!
- Relax test version restriction ([#3140](https://togithub.com/phpstan/phpstan-src/pull/3140)), thanks [@thg2k](https://togithub.com/thg2k)!
- Fix `PrepareCommand::fixComposerJson()` (https://github.com/phpstan/phpstan-src/commit/4537ef1445b910930afa32d7fd8f22b044fdc726)
- Internal errors as structured objects (https://github.com/phpstan/phpstan-src/commit/7cd03f02a5c32ca4e51006dc21d6184f73835a14)
- WorkerCommand - do not return exit code 1 in case of internal errors, they are handled anyway (https://github.com/phpstan/phpstan-src/commit/f76d836d13fb94e9887260ae18229ad2ca2ce2ce)
- NodeScopeResolverTest - remove requires (https://github.com/phpstan/phpstan-src/commit/f6b989881e66445197f6526bfcde868a60472098)
- Fix discrepancy between `lint >=` and `PHP_VERSION_ID` in NodeScopeResolverTest (https://github.com/phpstan/phpstan-src/commit/b530b0d53d3fc990dcb0225e0d997af06ee15180)
- `TypeInferenceTestCase::gatherAssertTypesFromDirectory()` (https://github.com/phpstan/phpstan-src/commit/595de78d35124d00eed90c09f5fd73cb40351e02)
- Take advantage of gatherAssertTypesFromDirectory in NodeScopeResolverTest ([#3159](https://togithub.com/phpstan/phpstan-src/pull/3159))
- Turn TraitsCachingIssueIntegrationTest into a e2e test ([#3151](https://togithub.com/phpstan/phpstan-src/pull/3151)), thanks [@staabm](https://togithub.com/staabm)!
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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, click this checkbox.
This PR contains the following updates:
1.11.4
->1.11.5
Release Notes
phpstan/phpstan
### [`v1.11.5`](https://togithub.com/phpstan/phpstan/releases/tag/1.11.5) [Compare Source](https://togithub.com/phpstan/phpstan/compare/1.11.4...1.11.5) # Bleeding edge 🔪 - Check array functions which require stringish values ([#3132](https://togithub.com/phpstan/phpstan-src/pull/3132)), [#11141](https://togithub.com/phpstan/phpstan/issues/11141), [#5848](https://togithub.com/phpstan/phpstan/issues/5848), [#3694](https://togithub.com/phpstan/phpstan/issues/3694), [#11111](https://togithub.com/phpstan/phpstan/issues/11111), thanks [@schlndh](https://togithub.com/schlndh)! *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 🔧 - When internal errors occur, do not show other reported errors (https://github.com/phpstan/phpstan-src/commit/aa921137be5b510408bc8df9b8b6fe632ed09db5) - It's important to first solve internal errors before seeing other reported errors - Inspired by [https://github.com/phpstan/phpstan/discussions/11107](https://togithub.com/phpstan/phpstan/discussions/11107) (ReviewDog was eating up important errors) - Show internal errors nicely in PHPStan Pro # Bugfixes 🐛 - Fix bug in `get_debug_type()` DynamicFunctionReturnTypeExtension ([#3128](https://togithub.com/phpstan/phpstan-src/pull/3128)), thanks [@patrickkusebauch](https://togithub.com/patrickkusebauch)! - Include path when counting errors ignored by identifier ([#3154](https://togithub.com/phpstan/phpstan-src/pull/3154)), [#11177](https://togithub.com/phpstan/phpstan/issues/11177), thanks [@pilif](https://togithub.com/pilif)! - Implement bit shift operation on integers and unions ([#3145](https://togithub.com/phpstan/phpstan-src/pull/3145)), thanks [@thg2k](https://togithub.com/thg2k)! - Fix division type result with even integer range ([#3152](https://togithub.com/phpstan/phpstan-src/pull/3152)), thanks [@thg2k](https://togithub.com/thg2k)! - Solve identical comparison bug in call-site variance ([#3153](https://togithub.com/phpstan/phpstan-src/pull/3153)), [#11161](https://togithub.com/phpstan/phpstan/issues/11161), [#10697](https://togithub.com/phpstan/phpstan/issues/10697), thanks [@VincentLanglet](https://togithub.com/VincentLanglet)! # Function signature fixes 🤖 - `gnupg_init()` `options` parameter is optional ([#3129](https://togithub.com/phpstan/phpstan-src/pull/3129)), thanks [@yphoenix](https://togithub.com/yphoenix)! - Update outdated `RedisCluster::__construct` signature ([#3130](https://togithub.com/phpstan/phpstan-src/pull/3130)), [#11158](https://togithub.com/phpstan/phpstan/issues/11158), thanks [@wolfgangzwiauer](https://togithub.com/wolfgangzwiauer)! - Improve image related functions signature ([#3127](https://togithub.com/phpstan/phpstan-src/pull/3127)), thanks [@thg2k](https://togithub.com/thg2k)! - Update/fix ext-amqp signatures ([#3139](https://togithub.com/phpstan/phpstan-src/pull/3139)), thanks [@ben-challis](https://togithub.com/ben-challis)! - fix `AMQPQueue::unbind()` routingKey type ([#3143](https://togithub.com/phpstan/phpstan-src/pull/3143)), thanks [@ben-challis](https://togithub.com/ben-challis)! - Add parameter definitions to `AMQPQueue::consume()` callback ([#3144](https://togithub.com/phpstan/phpstan-src/pull/3144)), [#9445](https://togithub.com/phpstan/phpstan/issues/9445), thanks [@ben-challis](https://togithub.com/ben-challis)! - Add int ranges to AMQP typings ([#3146](https://togithub.com/phpstan/phpstan-src/pull/3146)), thanks [@ben-challis](https://togithub.com/ben-challis)! - Various fixes to the return signature of `IntlDateFormatter` methods ([#3149](https://togithub.com/phpstan/phpstan-src/pull/3149)), thanks [@chosten](https://togithub.com/chosten)! - Fix `Exception::getTrace()` return type (https://github.com/phpstan/phpstan-src/commit/492cd89932d873147cdf7acf49c88d432cbce69f) - fix posix_getpwuid ([#3157](https://togithub.com/phpstan/phpstan-src/pull/3157)), thanks [@pistej](https://togithub.com/pistej)! # Internals 🔍 - Regression test ([#3136](https://togithub.com/phpstan/phpstan-src/pull/3136)), thanks [@staabm](https://togithub.com/staabm)! - Relax test version restriction ([#3140](https://togithub.com/phpstan/phpstan-src/pull/3140)), thanks [@thg2k](https://togithub.com/thg2k)! - Fix `PrepareCommand::fixComposerJson()` (https://github.com/phpstan/phpstan-src/commit/4537ef1445b910930afa32d7fd8f22b044fdc726) - Internal errors as structured objects (https://github.com/phpstan/phpstan-src/commit/7cd03f02a5c32ca4e51006dc21d6184f73835a14) - WorkerCommand - do not return exit code 1 in case of internal errors, they are handled anyway (https://github.com/phpstan/phpstan-src/commit/f76d836d13fb94e9887260ae18229ad2ca2ce2ce) - NodeScopeResolverTest - remove requires (https://github.com/phpstan/phpstan-src/commit/f6b989881e66445197f6526bfcde868a60472098) - Fix discrepancy between `lint >=` and `PHP_VERSION_ID` in NodeScopeResolverTest (https://github.com/phpstan/phpstan-src/commit/b530b0d53d3fc990dcb0225e0d997af06ee15180) - `TypeInferenceTestCase::gatherAssertTypesFromDirectory()` (https://github.com/phpstan/phpstan-src/commit/595de78d35124d00eed90c09f5fd73cb40351e02) - Take advantage of gatherAssertTypesFromDirectory in NodeScopeResolverTest ([#3159](https://togithub.com/phpstan/phpstan-src/pull/3159)) - Turn TraitsCachingIssueIntegrationTest into a e2e test ([#3151](https://togithub.com/phpstan/phpstan-src/pull/3151)), thanks [@staabm](https://togithub.com/staabm)!Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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 Renovate Bot.