mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-20 02:16:41 +08:00
!== array() => !empty()
This commit is contained in:
@ -36,7 +36,7 @@ class ArrayHelper
|
||||
{
|
||||
$args = func_get_args();
|
||||
$res = array_shift($args);
|
||||
while ($args !== array()) {
|
||||
while (!empty($args)) {
|
||||
$next = array_shift($args);
|
||||
foreach ($next as $k => $v) {
|
||||
if (is_integer($k)) {
|
||||
|
||||
Reference in New Issue
Block a user