Commit 60db4bc
committed
Fix PHPStan errors against Laravel 13 + larastan 3.9
Bump targets for Laravel 13's generic Scope interface and
remove a dead null check that larastan now flags.
- PublishingScope: add @implements Scope<TModel> and switch
apply() param to Builder<covariant TModel> to match the
parent signature variance.
- HasDrafts::newRevision: hoist the $updatingModel null guard
to an early return so $revision is non-null at use site,
silencing identical.alwaysFalse on the redundant check.1 parent ce44f4c commit 60db4bc
2 files changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
121 | 126 | | |
122 | 127 | | |
123 | | - | |
| 128 | + | |
124 | 129 | | |
125 | 130 | | |
126 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
0 commit comments