Skip to content

Commit

Permalink
Merge pull request #3 from Laragear/2.x/fix/closure-returns-bool-inst…
Browse files Browse the repository at this point in the history
…ead-of-string

[1.x] Fixes closure returning string instead of bool
  • Loading branch information
DarkGhostHunter authored Apr 11, 2022
2 parents 8b5ed97 + a113b24 commit 4b3f739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Eloquent/ExtendsBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function extend(Builder $query): void
protected function filterMethods(): Collection
{
return Collection::make((new ReflectionClass($this))->getMethods(Method::IS_PUBLIC | Method::IS_STATIC))
->filter(static function (Method $method): string {
->filter(static function (Method $method): bool {
return $method->isPublic() && $method->isStatic();
})
->map(static function (Method $method): string {
Expand Down

0 comments on commit 4b3f739

Please sign in to comment.