mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 19:48:49 +02:00
⬆️ N°3867 Upgrade php-parser from 3.1.5 to latest version 4.12.0
The 3.1.5 version wasn't maintained anymore and was compatible with PHP 7.2 maximum
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace PhpParser\Node\Stmt;
|
||||
|
||||
@@ -15,12 +15,16 @@ class Unset_ extends Node\Stmt
|
||||
* @param Node\Expr[] $vars Variables to unset
|
||||
* @param array $attributes Additional attributes
|
||||
*/
|
||||
public function __construct(array $vars, array $attributes = array()) {
|
||||
parent::__construct($attributes);
|
||||
public function __construct(array $vars, array $attributes = []) {
|
||||
$this->attributes = $attributes;
|
||||
$this->vars = $vars;
|
||||
}
|
||||
|
||||
public function getSubNodeNames() {
|
||||
return array('vars');
|
||||
public function getSubNodeNames() : array {
|
||||
return ['vars'];
|
||||
}
|
||||
|
||||
public function getType() : string {
|
||||
return 'Stmt_Unset';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user