Skip to content

Commit

Permalink
Fixes closure returning string instead of bool
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter authored Apr 10, 2022
1 parent 8b5ed97 commit a113b24
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 a113b24

Please sign in to comment.