mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进分页类魔术方法的返回值
This commit is contained in:
@@ -395,7 +395,15 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J
|
|||||||
|
|
||||||
public function __call($name, $arguments)
|
public function __call($name, $arguments)
|
||||||
{
|
{
|
||||||
return call_user_func_array([$this->getCollection(), $name], $arguments);
|
$collection = $this->getCollection();
|
||||||
|
|
||||||
|
$result = call_user_func_array([$collection, $name], $arguments);
|
||||||
|
|
||||||
|
if ($result === $collection) {
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user