11
11
use Closure ;
12
12
use Illuminate \Database \Eloquent \Model ;
13
13
use ReflectionClass ;
14
+ use ReflectionException ;
14
15
use ReflectionMethod ;
15
16
16
17
/** @experimental */
@@ -86,7 +87,14 @@ protected function deferToEloquentInstance(string $method, array $parameters): m
86
87
throw new BadMethodCallException (sprintf ("Method %s::%s does not exist. " , static ::class, $ method ));
87
88
}
88
89
89
- public static function __callStatic (string $ method , array $ parameters ): mixed
90
+ /**
91
+ * @param string $method
92
+ * @param array $parameters
93
+ * @return mixed
94
+ *
95
+ * @throws ReflectionException
96
+ */
97
+ public static function __callStatic ($ method , $ parameters )
90
98
{
91
99
// Check if a macro exists for the method
92
100
if (static ::hasMacro ($ method )) {
@@ -113,7 +121,14 @@ public static function __callStatic(string $method, array $parameters): mixed
113
121
throw new BadMethodCallException (sprintf ("Method %s::%s does not exist. " , static ::class, $ method ));
114
122
}
115
123
116
- public function __call (string $ method , array $ parameters ): mixed
124
+ /**
125
+ * @param string $method
126
+ * @param array $parameters
127
+ * @return mixed
128
+ *
129
+ * @throws ReflectionException
130
+ */
131
+ public function __call ($ method , $ parameters )
117
132
{
118
133
// Check if a macro exists for the method
119
134
if (static ::hasMacro ($ method )) {
0 commit comments