Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
12:7a779792577d | 13:5fb285c0d0e3 |
---|---|
1 <?php | 1 <?php declare(strict_types=1); |
2 | 2 |
3 namespace PhpParser\Node\Expr; | 3 namespace PhpParser\Node\Expr; |
4 | 4 |
5 use PhpParser\Node; | 5 use PhpParser\Node; |
6 use PhpParser\Node\Expr; | 6 use PhpParser\Node\Expr; |
7 use PhpParser\Node\Identifier; | |
7 | 8 |
8 class StaticCall extends Expr | 9 class StaticCall extends Expr |
9 { | 10 { |
10 /** @var Node\Name|Expr Class name */ | 11 /** @var Node\Name|Expr Class name */ |
11 public $class; | 12 public $class; |
12 /** @var string|Expr Method name */ | 13 /** @var string|Identifier|Expr Method name */ |
13 public $name; | 14 public $name; |
14 /** @var Node\Arg[] Arguments */ | 15 /** @var Node\Arg[] Arguments */ |
15 public $args; | 16 public $args; |
16 | 17 |
17 /** | 18 /** |
18 * Constructs a static method call node. | 19 * Constructs a static method call node. |
19 * | 20 * |
20 * @param Node\Name|Expr $class Class name | 21 * @param Node\Name|Expr $class Class name |
21 * @param string|Expr $name Method name | 22 * @param string|Identifier|Expr $name Method name |
22 * @param Node\Arg[] $args Arguments | 23 * @param Node\Arg[] $args Arguments |
23 * @param array $attributes Additional attributes | 24 * @param array $attributes Additional attributes |
24 */ | 25 */ |
25 public function __construct($class, $name, array $args = array(), array $attributes = array()) { | 26 public function __construct($class, $name, array $args = [], array $attributes = []) { |
26 parent::__construct($attributes); | 27 parent::__construct($attributes); |
27 $this->class = $class; | 28 $this->class = $class; |
28 $this->name = $name; | 29 $this->name = \is_string($name) ? new Identifier($name) : $name; |
29 $this->args = $args; | 30 $this->args = $args; |
30 } | 31 } |
31 | 32 |
32 public function getSubNodeNames() { | 33 public function getSubNodeNames() : array { |
33 return array('class', 'name', 'args'); | 34 return ['class', 'name', 'args']; |
35 } | |
36 | |
37 public function getType() : string { | |
38 return 'Expr_StaticCall'; | |
34 } | 39 } |
35 } | 40 } |