Skip to content

Commit

Permalink
Fix: revert to array args in Models/Auth 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
hsemix committed Sep 9, 2024
1 parent d66058d commit eecc9f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Yuga/Models/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,25 @@ public static function authRoutesExist()
* Call all \Yuga\Authenticate\Authenticate methods statically through \Auth
*
* @param string $method
* @param string $args
* @param array $args
*
* @return (new \Yuga\Authenticate\Authenticate)->$method($args)
*/
public static function __callStatic($method, $args)
{
return call_user_func_array([new Authenticate, $method], [$args]);
return call_user_func_array([new Authenticate, $method], $args);
}

/**
* Call all \Yuga\Authenticate\Authenticate methods through \Auth
*
* @param string $method
* @param any $args
* @param array $args
*
* @return (new \Yuga\Authenticate\Authenticate)->$method($args)
*/
public function __call($method, $args)
{
return call_user_func_array([new Authenticate, $method], [$args]);
return call_user_func_array([new Authenticate, $method], $args);
}
}

0 comments on commit eecc9f0

Please sign in to comment.