File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -189,22 +189,20 @@ public function __construct(
189189 /**
190190 * Handle dynamic calls to class methods.
191191 *
192- * @param mixed $method
193- * @param mixed $parameters
194192 * @throws BadMethodCallException when method does not exist
195193 */
196- public function __call ($ method , $ parameters )
194+ public function __call (string $ name , array $ arguments ): mixed
197195 {
198- $ rule = StrCache::snake (substr ($ method , 8 ));
196+ $ rule = StrCache::snake (substr ($ name , 8 ));
199197
200198 if (isset ($ this ->extensions [$ rule ])) {
201- return $ this ->callExtension ($ rule , $ parameters );
199+ return $ this ->callExtension ($ rule , $ arguments );
202200 }
203201
204202 throw new BadMethodCallException (sprintf (
205203 'Method %s::%s does not exist. ' ,
206204 static ::class,
207- $ method
205+ $ name
208206 ));
209207 }
210208
You can’t perform that action at this time.
0 commit comments