comparison vendor/nikic/php-parser/lib/PhpParser/Node/Expr/New_.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; 5 use PhpParser\Node;
6 use PhpParser\Node\Expr; 6 use PhpParser\Node\Expr;
17 * 17 *
18 * @param Node\Name|Expr|Node\Stmt\Class_ $class Class name (or class node for anonymous classes) 18 * @param Node\Name|Expr|Node\Stmt\Class_ $class Class name (or class node for anonymous classes)
19 * @param Node\Arg[] $args Arguments 19 * @param Node\Arg[] $args Arguments
20 * @param array $attributes Additional attributes 20 * @param array $attributes Additional attributes
21 */ 21 */
22 public function __construct($class, array $args = array(), array $attributes = array()) { 22 public function __construct($class, array $args = [], array $attributes = []) {
23 parent::__construct($attributes); 23 parent::__construct($attributes);
24 $this->class = $class; 24 $this->class = $class;
25 $this->args = $args; 25 $this->args = $args;
26 } 26 }
27 27
28 public function getSubNodeNames() { 28 public function getSubNodeNames() : array {
29 return array('class', 'args'); 29 return ['class', 'args'];
30 }
31
32 public function getType() : string {
33 return 'Expr_New';
30 } 34 }
31 } 35 }