Skip to content

Releases: cego/phpstan

4.1.0

24 Sep 11:14
706f66e

Choose a tag to compare

What's Changed

  • Added new extension with strict rules, phpstan level 10 and per-error file baselines.

4.0.1

19 Nov 14:54
8dae477

Choose a tag to compare

Remove old exclusions, see release 4.0.0 for breaking changes

4.0.0

19 Nov 13:15
ecce1d2

Choose a tag to compare

# 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

12 Feb 08:16
57d66f4

Choose a tag to compare

Merge pull request #19 from cego/lejo/support-spatie-4

Support spatie4

3.3.1

22 Jan 09:50
4485956

Choose a tag to compare

Fixed bug with phpstan config file

Full Changelog: 3.3.0...3.3.1

3.3.0

22 Jan 09:24
475718d

Choose a tag to compare

What's Changed

  • Use larastan/larastan instead of nunomaduro/larastan by @firecow in #16

Full Changelog: 3.2.0...3.3.0

3.2.0

12 Sep 08:21
34a57d6

Choose a tag to compare

Deleted custom rule for spatie laravel data due to too many issues

3.1.2

15 Jun 06:13
b31482e

Choose a tag to compare

Made sure the rule does not crash in case of unanalyzed data classes

Release 3.1.1

27 Feb 10:46
ee85576

Choose a tag to compare

Fixed array not being accepted for DataCollection

Release 3.1.0

08 Feb 14:09
1ae8c6a

Choose a tag to compare

Added nullable check, even for casted properties