Skip to content

Commit 50f5abe

Browse files
Fix PHPstan
1 parent 1fe1678 commit 50f5abe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

phpstan-baseline.neon

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,14 @@ parameters:
265265
path: src/PaginatedDataCollection.php
266266

267267
-
268-
message: '#^Call to an undefined method Illuminate\\Contracts\\Pagination\\Paginator\:\:through\(\)\.$#'
269-
identifier: method.notFound
270-
count: 2
268+
message: '#^Method Spatie\\LaravelData\\PaginatedDataCollection\:\:through\(\) should return static\(Spatie\\LaravelData\\PaginatedDataCollection\<TKey of \(int\|string\), TValue\>\) but returns \$this\(Spatie\\LaravelData\\PaginatedDataCollection\<TKey of \(int\|string\), TValue\>\)\.$#'
269+
identifier: return.type
270+
count: 1
271271
path: src/PaginatedDataCollection.php
272272

273273
-
274-
message: '#^Method Spatie\\LaravelData\\PaginatedDataCollection\:\:through\(\) should return static\(Spatie\\LaravelData\\PaginatedDataCollection\<TKey of \(int\|string\), TValue\>\) but returns \$this\(Spatie\\LaravelData\\PaginatedDataCollection\<TKey of \(int\|string\), TValue\>\)\.$#'
275-
identifier: return.type
274+
message: '#^Parameter \#1 \$callback of method Illuminate\\Contracts\\Pagination\\Paginator\<\(int\|string\),mixed\>\:\:through\(\) expects callable\(mixed\)\: mixed, Closure\(TValue, TKey\)\: TValue given\.$#'
275+
identifier: argument.type
276276
count: 1
277277
path: src/PaginatedDataCollection.php
278278

0 commit comments

Comments
 (0)