PhpMigration\Changes\v7dot0\FuncList::checkEmpty PHP Method

checkEmpty() protected method

protected checkEmpty ( List_ $node )
$node PhpParser\Node\Expr\List_
    protected function checkEmpty(Expr\List_ $node)
    {
        // All var is null
        foreach ($node->vars as $var) {
            if (!is_null($var)) {
                return;
            }
        }
        $this->addSpot('NOTICE', true, 'empty list() assignments have been removed');
    }