larastan/larastan (larastan/larastan)
### [`v2.9.1`](https://togithub.com/larastan/larastan/releases/tag/v2.9.1): 2.9.1
[Compare Source](https://togithub.com/larastan/larastan/compare/v2.9.0...v2.9.1)
### What's Changed
#### Added
- Add support for restoreOrCreate and createOrRestore SoftDelete macros. by [@mad-briller](https://togithub.com/mad-briller) in [https://github.com/larastan/larastan/pull/1859](https://togithub.com/larastan/larastan/pull/1859)
- chore: add `withWhereHas` method to supported Eloquent Builder methods by [@akinoriakatsuka](https://togithub.com/akinoriakatsuka) in [https://github.com/larastan/larastan/pull/1853](https://togithub.com/larastan/larastan/pull/1853)
#### Fixed
- Fixed issue where collections with invalid templates configured would cause a fatal error. by [@mad-briller](https://togithub.com/mad-briller) in [https://github.com/larastan/larastan/pull/1863](https://togithub.com/larastan/larastan/pull/1863)
- Fixed a case with macros registered as static methods with array syntax [`42d5262`](https://togithub.com/larastan/larastan/commit/42d526244b2671229bc2ca05abde7a519f7ec5f8)
- Fixed an issue where `map` and `mapWithKeys` methods of Eloquent collection returns a Eloquent collection if model is returned from the callback [`097a2d2`](https://togithub.com/larastan/larastan/commit/097a2d29409e5568166b66a3b703e2f7a2491931)
#### Internal
- chore: add tests for LazyCollection flatmap by [@calebdw](https://togithub.com/calebdw) in [https://github.com/larastan/larastan/pull/1851](https://togithub.com/larastan/larastan/pull/1851)
- Added error identifiers to Larastan's rules https://github.com/larastan/larastan/commit/b3f95c426c41476e6ca6853acc234ff20b90c721
#### New Contributors
- [@akinoriakatsuka](https://togithub.com/akinoriakatsuka) made their first contribution in [https://github.com/larastan/larastan/pull/1853](https://togithub.com/larastan/larastan/pull/1853)
**Full Changelog**: https://github.com/larastan/larastan/compare/v2.9.0...v2.9.1
phpstan/phpstan (phpstan/phpstan)
### [`v1.10.59`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.59)
[Compare Source](https://togithub.com/phpstan/phpstan/compare/1.10.58...1.10.59)
# Bleeding edge 🔪
- `array_values` rule (report when a `list` type is always passed in) ([#2917](https://togithub.com/phpstan/phpstan-src/pull/2917)), thanks [@kamil-zacek](https://togithub.com/kamil-zacek)!
*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 🔧
- ArrayFilterRule - tip message about `treatPhpDocTypesAsCertain` (https://github.com/phpstan/phpstan-src/commit/f5b198c9801282d7002f5310d5ff5318eec54465)
- ArgumentsNormalizer - skip unused arguments in non-variadic signatures, still return a normalized call (https://github.com/phpstan/phpstan-src/commit/17e5bac093c3695a449cf54a2193e74677c0223f)
- Methods in fluent interfaces are considered impure (https://github.com/phpstan/phpstan-src/commit/b0261263e2e3a3643a9a89eb0931c07d8e71dc18)
- Add type-specifying extension for `settype()` ([#2920](https://togithub.com/phpstan/phpstan-src/pull/2920)), thanks [@ChrisBrenton](https://togithub.com/ChrisBrenton)!
# Bugfixes 🐛
- MethodAssertRule - do not report implicitly inherited assert tags (https://github.com/phpstan/phpstan-src/commit/299df5130a14d5a23073edb044b46209ee7b5426), [#10573](https://togithub.com/phpstan/phpstan/issues/10573)
- Gets rid of the annoying error "Asserted type ... with type ... does not narrow down the type."
- ConstantArrayType - string offset might exist as integer offset (https://github.com/phpstan/phpstan-src/commit/2fb66328fdd7119922ce4579f8951ee776320ef6), [#10577](https://togithub.com/phpstan/phpstan/issues/10577)
# Internals 🔍
- Parallelize levels tests ([#2916](https://togithub.com/phpstan/phpstan-src/pull/2916)), thanks [@staabm](https://togithub.com/staabm)!
- `FunctionReflection::isPure()` and `ExtendedMethodReflection::isPure()` (https://github.com/phpstan/phpstan-src/commit/03d01eae4a59592f7388bc46b14e5db8eff57df8)
Configuration
📅 Schedule: Branch creation - "before 4pm on Wednesday except before 9am on Wednesday" in timezone America/New_York, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] 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:
2.9.0
->2.9.1
1.10.58
->1.10.59
Release Notes
larastan/larastan (larastan/larastan)
### [`v2.9.1`](https://togithub.com/larastan/larastan/releases/tag/v2.9.1): 2.9.1 [Compare Source](https://togithub.com/larastan/larastan/compare/v2.9.0...v2.9.1) ### What's Changed #### Added - Add support for restoreOrCreate and createOrRestore SoftDelete macros. by [@mad-briller](https://togithub.com/mad-briller) in [https://github.com/larastan/larastan/pull/1859](https://togithub.com/larastan/larastan/pull/1859) - chore: add `withWhereHas` method to supported Eloquent Builder methods by [@akinoriakatsuka](https://togithub.com/akinoriakatsuka) in [https://github.com/larastan/larastan/pull/1853](https://togithub.com/larastan/larastan/pull/1853) #### Fixed - Fixed issue where collections with invalid templates configured would cause a fatal error. by [@mad-briller](https://togithub.com/mad-briller) in [https://github.com/larastan/larastan/pull/1863](https://togithub.com/larastan/larastan/pull/1863) - Fixed a case with macros registered as static methods with array syntax [`42d5262`](https://togithub.com/larastan/larastan/commit/42d526244b2671229bc2ca05abde7a519f7ec5f8) - Fixed an issue where `map` and `mapWithKeys` methods of Eloquent collection returns a Eloquent collection if model is returned from the callback [`097a2d2`](https://togithub.com/larastan/larastan/commit/097a2d29409e5568166b66a3b703e2f7a2491931) #### Internal - chore: add tests for LazyCollection flatmap by [@calebdw](https://togithub.com/calebdw) in [https://github.com/larastan/larastan/pull/1851](https://togithub.com/larastan/larastan/pull/1851) - Added error identifiers to Larastan's rules https://github.com/larastan/larastan/commit/b3f95c426c41476e6ca6853acc234ff20b90c721 #### New Contributors - [@akinoriakatsuka](https://togithub.com/akinoriakatsuka) made their first contribution in [https://github.com/larastan/larastan/pull/1853](https://togithub.com/larastan/larastan/pull/1853) **Full Changelog**: https://github.com/larastan/larastan/compare/v2.9.0...v2.9.1phpstan/phpstan (phpstan/phpstan)
### [`v1.10.59`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.59) [Compare Source](https://togithub.com/phpstan/phpstan/compare/1.10.58...1.10.59) # Bleeding edge 🔪 - `array_values` rule (report when a `list` type is always passed in) ([#2917](https://togithub.com/phpstan/phpstan-src/pull/2917)), thanks [@kamil-zacek](https://togithub.com/kamil-zacek)! *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 🔧 - ArrayFilterRule - tip message about `treatPhpDocTypesAsCertain` (https://github.com/phpstan/phpstan-src/commit/f5b198c9801282d7002f5310d5ff5318eec54465) - ArgumentsNormalizer - skip unused arguments in non-variadic signatures, still return a normalized call (https://github.com/phpstan/phpstan-src/commit/17e5bac093c3695a449cf54a2193e74677c0223f) - Methods in fluent interfaces are considered impure (https://github.com/phpstan/phpstan-src/commit/b0261263e2e3a3643a9a89eb0931c07d8e71dc18) - Add type-specifying extension for `settype()` ([#2920](https://togithub.com/phpstan/phpstan-src/pull/2920)), thanks [@ChrisBrenton](https://togithub.com/ChrisBrenton)! # Bugfixes 🐛 - MethodAssertRule - do not report implicitly inherited assert tags (https://github.com/phpstan/phpstan-src/commit/299df5130a14d5a23073edb044b46209ee7b5426), [#10573](https://togithub.com/phpstan/phpstan/issues/10573) - Gets rid of the annoying error "Asserted type ... with type ... does not narrow down the type." - ConstantArrayType - string offset might exist as integer offset (https://github.com/phpstan/phpstan-src/commit/2fb66328fdd7119922ce4579f8951ee776320ef6), [#10577](https://togithub.com/phpstan/phpstan/issues/10577) # Internals 🔍 - Parallelize levels tests ([#2916](https://togithub.com/phpstan/phpstan-src/pull/2916)), thanks [@staabm](https://togithub.com/staabm)! - `FunctionReflection::isPure()` and `ExtendedMethodReflection::isPure()` (https://github.com/phpstan/phpstan-src/commit/03d01eae4a59592f7388bc46b14e5db8eff57df8)Configuration
📅 Schedule: Branch creation - "before 4pm on Wednesday except before 9am on Wednesday" in timezone America/New_York, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.