Commit 282fd046 by Jordi Boggiano

The rest parameter shouldn't be added twice

parent e76c16b3
......@@ -3134,6 +3134,7 @@ class Dwoo_Compiler implements Dwoo_ICompiler
}
if ($param->getName() === 'rest' && $param->isArray() === true) {
$out[] = array('*', $param->isOptional(), null);
continue;
}
$out[] = array($param->getName(), $param->isOptional(), $param->isOptional() ? $param->getDefaultValue() : null);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment