From a113b240680cb6868fb0087b579f3a39a1795fcc Mon Sep 17 00:00:00 2001 From: Italo Date: Sun, 10 Apr 2022 15:55:59 -0400 Subject: [PATCH] Fixes closure returning string instead of bool --- src/Database/Eloquent/ExtendsBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/Eloquent/ExtendsBuilder.php b/src/Database/Eloquent/ExtendsBuilder.php index 90ec13a..bb51fb0 100644 --- a/src/Database/Eloquent/ExtendsBuilder.php +++ b/src/Database/Eloquent/ExtendsBuilder.php @@ -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 {