mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-30 04:29:15 +01:00
Add missing type hints
This commit is contained in:
parent
52dafafd10
commit
805078e0a9
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user