Skip to content

Commit 27ffcbf

Browse files
committed
Revert to assume callable/closure
1 parent 6795924 commit 27ffcbf

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/Query/Model/Builder.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,10 @@ public function applyScopes(): static
499499
}
500500

501501
$builder->callScope(function (self $builder) use ($scope) {
502-
if ($scope instanceof Closure) {
503-
$scope($builder);
504-
}
505-
506502
if ($scope instanceof Scope) {
507503
$scope->apply($builder, $this->getModel());
504+
} else {
505+
$scope($builder);
508506
}
509507
});
510508

0 commit comments

Comments
 (0)