File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ includes:
2
2
- phpstan-baseline.neon
3
3
4
4
parameters:
5
- level: 4
5
+ level: 5
6
6
paths:
7
7
- src
8
8
- config
Original file line number Diff line number Diff line change 7
7
use EriBloo \LaravelModelSnapshots \Contracts \Snapshot as SnapshotContract ;
8
8
use Illuminate \Database \Eloquent \Collection ;
9
9
10
+ /**
11
+ * @extends Collection<int, Snapshot>
12
+ */
10
13
class SnapshotCollection extends Collection
11
14
{
12
- public function toModels (bool $ fillExcludedAttributes = false ): SnapshotCollection
15
+ public function toModels (bool $ fillExcludedAttributes = false ): Collection
13
16
{
14
17
if ($ fillExcludedAttributes ) {
15
18
$ this ->loadMissing ('subject ' );
16
19
}
17
20
18
- return new SnapshotCollection (
21
+ return new Collection (
19
22
$ this ->map (
20
23
fn (SnapshotContract $ snapshot ) => $ snapshot ->toModel ($ fillExcludedAttributes )
21
24
)
You can’t perform that action at this time.
0 commit comments