mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
改进Validate类的静态调用
This commit is contained in:
@@ -1255,7 +1255,7 @@ class Validate
|
|||||||
|
|
||||||
public static function __callStatic($method, $params)
|
public static function __callStatic($method, $params)
|
||||||
{
|
{
|
||||||
$class = new static;
|
$class = self::make();
|
||||||
if (method_exists($class, $method)) {
|
if (method_exists($class, $method)) {
|
||||||
return call_user_func_array([$class, $method], $params);
|
return call_user_func_array([$class, $method], $params);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user