Skip to content

Commit 6b55308

Browse files
committed
Type hint paginator with with interface.
1 parent c9ea349 commit 6b55308

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

phpstan-baseline.neon

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
parameters:
2-
ignoreErrors:
3-
-
4-
message: "#^Parameter \\#1 \\$paginator of method TomShaw\\\\Mediable\\\\Components\\\\MediaBrowser\\:\\:renderView\\(\\) expects Illuminate\\\\Pagination\\\\LengthAwarePaginator, Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator given\\.$#"
5-
count: 1
6-
path: src/Components/MediaBrowser.php
2+
ignoreErrors: []

src/Components/MediaBrowser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace TomShaw\Mediable\Components;
44

5-
use Illuminate\Pagination\LengthAwarePaginator;
5+
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
66
use Livewire\Attributes\On;
77
use Livewire\{Component, WithFileUploads, WithPagination};
88
use TomShaw\Mediable\Eloquent\Eloquent;

0 commit comments

Comments
 (0)