Releases: cego/phpstan
Releases · cego/phpstan
4.1.0
4.0.1
Remove old exclusions, see release 4.0.0 for breaking changes
4.0.0
- Upgrade phpstan to ^2.0.0, see their changelog for breaking changes https://github.com/phpstan/phpstan/releases/tag/2.0.0
- Upgrade larastan to ^3.0.0, see their changelog for breaking changes https://github.com/larastan/larastan/releases/tag/v3.0.0
- Require PHP 8.3 and Laravel 11
- Removes exclusions for errors:
# Allow illuminate array types in array_merge
- '#Parameter \#1 ...\$arrays of function array_merge expects array, array|Illuminate\Contracts\Support\Arrayable|JsonSerializable given.#'
# Allow magic calls on unique generator
- '#Access to an undefined property Faker\\UniqueGenerator::#'
# Allow arrow functions for collecitons
- '#Parameter \#1 \$callback of method Illuminate\\Support\\Collection\<mixed\,mixed\>\:\:each\(\) expects callable\(mixed\, mixed\)\: bool\|void, Closure#'
- '#Parameter \#1 \$callback of method Illuminate\\Support\\(Collection|LazyCollection).*?\:\:(each|reject|transform|map|filter|only|except|reduce).*?expects.*?(Closure|callable).*?(Closure|callable).*?given#'
# Allow mixed types for collect function
- '#Unable to resolve the template type (TKey|TValue) in call to function collect#'
# Allow collection methods on relationship properties
- '#Cannot call method (each|reject|transform|map|filter|only|except|reduce|count)\(\) on.*Illuminate\\Database\\Eloquent\\Collection#'
# Ignore relationship generics
- '#Generic type Illuminate\\Database\\Eloquent\\Relations\\#'
- '#should return Illuminate\\Database\\Eloquent\\Relations\\.*?but returns.*Illuminate\\Database\\Eloquent\\Relations\\#'
- '#generic class Illuminate\\Database\\Eloquent\\(Builder|Relations\\).*? does not specify its types:#'
# Laravel-Ide-Helper integration
- '#PHPDoc tag @mixin contains unknown class Eloquent#'
Support spatie data v4
Merge pull request #19 from cego/lejo/support-spatie-4 Support spatie4
3.3.1
Fixed bug with phpstan config file
Full Changelog: 3.3.0...3.3.1
3.3.0
3.2.0
Deleted custom rule for spatie laravel data due to too many issues
3.1.2
Made sure the rule does not crash in case of unanalyzed data classes
Release 3.1.1
Fixed array not being accepted for DataCollection
Release 3.1.0
Added nullable check, even for casted properties