Skip to content

Commit bc66c4b

Browse files
committed
PHPStan - Fix anonymous function has an unused use $whereModel.
1 parent a15bdb3 commit bc66c4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private static function otherRecordExistsWithSlug(string $path, $whereModel): bo
101101
$query->where('related_id', $whereModel['id'])
102102
->where('related_type', $whereModel['type']);
103103
})
104-
->orWhere(function ($query) use ($whereModel): void {
104+
->orWhere(function ($query): void {
105105
$query->whereNull('related_id')
106106
->whereNull('related_type');
107107
});

0 commit comments

Comments
 (0)