updated packages
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace PhpParser;
|
||||
|
||||
use PhpParser\Node;
|
||||
|
||||
abstract class NodeAbstract implements Node, \JsonSerializable
|
||||
{
|
||||
protected $attributes;
|
||||
@@ -159,11 +157,11 @@ abstract class NodeAbstract implements Node, \JsonSerializable
|
||||
}
|
||||
|
||||
public function getAttribute(string $key, $default = null) {
|
||||
if (!array_key_exists($key, $this->attributes)) {
|
||||
return $default;
|
||||
} else {
|
||||
if (array_key_exists($key, $this->attributes)) {
|
||||
return $this->attributes[$key];
|
||||
}
|
||||
|
||||
return $default;
|
||||
}
|
||||
|
||||
public function getAttributes() : array {
|
||||
|
||||
Reference in New Issue
Block a user