Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.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 |
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\Expr; | 5 use PhpParser\Node\Expr; |
6 use PhpParser\Node\Name; | 6 use PhpParser\Node\Name; |
17 * | 17 * |
18 * @param Expr $expr Expression | 18 * @param Expr $expr Expression |
19 * @param Name|Expr $class Class name | 19 * @param Name|Expr $class Class name |
20 * @param array $attributes Additional attributes | 20 * @param array $attributes Additional attributes |
21 */ | 21 */ |
22 public function __construct(Expr $expr, $class, array $attributes = array()) { | 22 public function __construct(Expr $expr, $class, array $attributes = []) { |
23 parent::__construct($attributes); | 23 parent::__construct($attributes); |
24 $this->expr = $expr; | 24 $this->expr = $expr; |
25 $this->class = $class; | 25 $this->class = $class; |
26 } | 26 } |
27 | 27 |
28 public function getSubNodeNames() { | 28 public function getSubNodeNames() : array { |
29 return array('expr', 'class'); | 29 return ['expr', 'class']; |
30 } | |
31 | |
32 public function getType() : string { | |
33 return 'Expr_Instanceof'; | |
30 } | 34 } |
31 } | 35 } |