Add missing type hints

This commit is contained in:
Nikita Popov 2015-03-28 18:14:24 +01:00
parent 52dafafd10
commit 805078e0a9
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class ShellExec extends Expr
* @param array $parts Encapsed string array * @param array $parts Encapsed string array
* @param array $attributes Additional attributes * @param array $attributes Additional attributes
*/ */
public function __construct($parts, array $attributes = array()) { public function __construct(array $parts, array $attributes = array()) {
parent::__construct(null, $attributes); parent::__construct(null, $attributes);
$this->parts = $parts; $this->parts = $parts;
} }

View File

@ -28,7 +28,7 @@ class Param extends NodeAbstract
* @param bool $variadic Whether this is a variadic argument * @param bool $variadic Whether this is a variadic argument
* @param array $attributes Additional attributes * @param array $attributes Additional attributes
*/ */
public function __construct($name, $default = null, $type = null, $byRef = false, $variadic = false, array $attributes = array()) { public function __construct($name, Expr $default = null, $type = null, $byRef = false, $variadic = false, array $attributes = array()) {
parent::__construct(null, $attributes); parent::__construct(null, $attributes);
$this->type = $type; $this->type = $type;
$this->byRef = $byRef; $this->byRef = $byRef;