phpstan/phpstan
### [`v1.10.67`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.67)
[Compare Source](https://togithub.com/phpstan/phpstan/compare/1.10.66...1.10.67)
**This is the last release, or one of the last releases, in 1.10.x series. The next one is going to be PHPStan 1.11, and it's going to be released at some point in May 2024.**
# Improvements 🔧
- Forbid PHPUnitPHAR prefixed classes ([#3002](https://togithub.com/phpstan/phpstan-src/pull/3002)), thanks [@staabm](https://togithub.com/staabm)!
- Improve error messages on unnamed parameters ([#3010](https://togithub.com/phpstan/phpstan-src/pull/3010)), [#10814](https://togithub.com/phpstan/phpstan/issues/10814), thanks [@takaram](https://togithub.com/takaram)!
# Bugfixes 🐛
- Improve `date()` return types ([#2888](https://togithub.com/phpstan/phpstan-src/pull/2888)), [#10468](https://togithub.com/phpstan/phpstan/issues/10468), [#6613](https://togithub.com/phpstan/phpstan/issues/6613), thanks [@zonuexe](https://togithub.com/zonuexe)!
- Default value null does not make promoted property type nullable (https://github.com/phpstan/phpstan-src/commit/b2177e350f79176a5d53eaf75e37e5dce0053f8a), [#9839](https://togithub.com/phpstan/phpstan/issues/9839)
- Fix socket_select array types after call (https://github.com/phpstan/phpstan-src/commit/24c52494be982429eb6782ad859fb6cbd6fb3dee), [https://github.com/phpstan/phpstan/discussions/10285](https://togithub.com/phpstan/phpstan/discussions/10285)
- Fix conditional types in PHPDocs from stubs for native functions (https://github.com/phpstan/phpstan-src/commit/8ae0b28a5c1e6f4e2c692caff0cd99df07f2486e)
- Fix env int key problem (https://github.com/phpstan/phpstan-src/commit/e606fbedaea7e887456a771ce0dbb9572d16accf), [#10833](https://togithub.com/phpstan/phpstan/issues/10833)
- Fix false positives about uninitialized properties ([#2897](https://togithub.com/phpstan/phpstan-src/pull/2897)), [#10523](https://togithub.com/phpstan/phpstan/issues/10523), [#10822](https://togithub.com/phpstan/phpstan/issues/10822), thanks [@staabm](https://togithub.com/staabm)!
- Incremented numeric-string should change to int/float ([#2797](https://togithub.com/phpstan/phpstan-src/pull/2797)), [#10122](https://togithub.com/phpstan/phpstan/issues/10122), [#10187](https://togithub.com/phpstan/phpstan/issues/10187), thanks [@staabm](https://togithub.com/staabm)!
- Do not generalize big array when combined with empty array ([#3003](https://togithub.com/phpstan/phpstan-src/pull/3003)), [#10834](https://togithub.com/phpstan/phpstan/issues/10834), thanks [@RobertMe](https://togithub.com/RobertMe)!
- Fix string concatenation with benevolent union type (https://github.com/phpstan/phpstan-src/commit/4a4c739f9ff85b6c73659c21f8f3b8b7af8c82c9), [#10863](https://togithub.com/phpstan/phpstan/issues/10863)
- Treat `get_defined_vars()` as using constructor arguments ([#3012](https://togithub.com/phpstan/phpstan-src/pull/3012)), [#10865](https://togithub.com/phpstan/phpstan/issues/10865), thanks [@rvanvelzen](https://togithub.com/rvanvelzen)!
- Allow undefined variables passed into by-ref parameters only if the type is nullable (https://github.com/phpstan/phpstan-src/commit/7f8f9cce7f3903e505916c7afe04b7912570b5e2, https://github.com/phpstan/phpstan-src/commit/7961f7ae1fe815b0796e4d73717f1b117d4a7163), [#1916](https://togithub.com/phpstan/phpstan/issues/1916)
# Function signature fixes 🤖
- More precise `gc_status()` signature for PHP8.3+ ([#2996](https://togithub.com/phpstan/phpstan-src/pull/2996)), thanks [@staabm](https://togithub.com/staabm)!
- Add object shape for `mysqli_result::fetch_fields` ([#3005](https://togithub.com/phpstan/phpstan-src/pull/3005)), thanks [@schlndh](https://togithub.com/schlndh)!
# Internals 🔍
- composer-dependency-analyser: update to 1.5.0 (support functions) ([#3011](https://togithub.com/phpstan/phpstan-src/pull/3011)), thanks [@janedbal](https://togithub.com/janedbal)!
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.10.66
->1.10.67
Release Notes
phpstan/phpstan
### [`v1.10.67`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.67) [Compare Source](https://togithub.com/phpstan/phpstan/compare/1.10.66...1.10.67) **This is the last release, or one of the last releases, in 1.10.x series. The next one is going to be PHPStan 1.11, and it's going to be released at some point in May 2024.** # Improvements 🔧 - Forbid PHPUnitPHAR prefixed classes ([#3002](https://togithub.com/phpstan/phpstan-src/pull/3002)), thanks [@staabm](https://togithub.com/staabm)! - Improve error messages on unnamed parameters ([#3010](https://togithub.com/phpstan/phpstan-src/pull/3010)), [#10814](https://togithub.com/phpstan/phpstan/issues/10814), thanks [@takaram](https://togithub.com/takaram)! # Bugfixes 🐛 - Improve `date()` return types ([#2888](https://togithub.com/phpstan/phpstan-src/pull/2888)), [#10468](https://togithub.com/phpstan/phpstan/issues/10468), [#6613](https://togithub.com/phpstan/phpstan/issues/6613), thanks [@zonuexe](https://togithub.com/zonuexe)! - Default value null does not make promoted property type nullable (https://github.com/phpstan/phpstan-src/commit/b2177e350f79176a5d53eaf75e37e5dce0053f8a), [#9839](https://togithub.com/phpstan/phpstan/issues/9839) - Fix socket_select array types after call (https://github.com/phpstan/phpstan-src/commit/24c52494be982429eb6782ad859fb6cbd6fb3dee), [https://github.com/phpstan/phpstan/discussions/10285](https://togithub.com/phpstan/phpstan/discussions/10285) - Fix conditional types in PHPDocs from stubs for native functions (https://github.com/phpstan/phpstan-src/commit/8ae0b28a5c1e6f4e2c692caff0cd99df07f2486e) - Fix env int key problem (https://github.com/phpstan/phpstan-src/commit/e606fbedaea7e887456a771ce0dbb9572d16accf), [#10833](https://togithub.com/phpstan/phpstan/issues/10833) - Fix false positives about uninitialized properties ([#2897](https://togithub.com/phpstan/phpstan-src/pull/2897)), [#10523](https://togithub.com/phpstan/phpstan/issues/10523), [#10822](https://togithub.com/phpstan/phpstan/issues/10822), thanks [@staabm](https://togithub.com/staabm)! - Incremented numeric-string should change to int/float ([#2797](https://togithub.com/phpstan/phpstan-src/pull/2797)), [#10122](https://togithub.com/phpstan/phpstan/issues/10122), [#10187](https://togithub.com/phpstan/phpstan/issues/10187), thanks [@staabm](https://togithub.com/staabm)! - Do not generalize big array when combined with empty array ([#3003](https://togithub.com/phpstan/phpstan-src/pull/3003)), [#10834](https://togithub.com/phpstan/phpstan/issues/10834), thanks [@RobertMe](https://togithub.com/RobertMe)! - Fix string concatenation with benevolent union type (https://github.com/phpstan/phpstan-src/commit/4a4c739f9ff85b6c73659c21f8f3b8b7af8c82c9), [#10863](https://togithub.com/phpstan/phpstan/issues/10863) - Treat `get_defined_vars()` as using constructor arguments ([#3012](https://togithub.com/phpstan/phpstan-src/pull/3012)), [#10865](https://togithub.com/phpstan/phpstan/issues/10865), thanks [@rvanvelzen](https://togithub.com/rvanvelzen)! - Allow undefined variables passed into by-ref parameters only if the type is nullable (https://github.com/phpstan/phpstan-src/commit/7f8f9cce7f3903e505916c7afe04b7912570b5e2, https://github.com/phpstan/phpstan-src/commit/7961f7ae1fe815b0796e4d73717f1b117d4a7163), [#1916](https://togithub.com/phpstan/phpstan/issues/1916) # Function signature fixes 🤖 - More precise `gc_status()` signature for PHP8.3+ ([#2996](https://togithub.com/phpstan/phpstan-src/pull/2996)), thanks [@staabm](https://togithub.com/staabm)! - Add object shape for `mysqli_result::fetch_fields` ([#3005](https://togithub.com/phpstan/phpstan-src/pull/3005)), thanks [@schlndh](https://togithub.com/schlndh)! # Internals 🔍 - composer-dependency-analyser: update to 1.5.0 (support functions) ([#3011](https://togithub.com/phpstan/phpstan-src/pull/3011)), thanks [@janedbal](https://togithub.com/janedbal)!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.