Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TryCatch.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\Stmt; | 3 namespace PhpParser\Node\Stmt; |
4 | 4 |
5 use PhpParser\Node; | 5 use PhpParser\Node; |
6 | 6 |
7 class TryCatch extends Node\Stmt | 7 class TryCatch extends Node\Stmt |
8 { | 8 { |
9 /** @var Node[] Statements */ | 9 /** @var Node\Stmt[] Statements */ |
10 public $stmts; | 10 public $stmts; |
11 /** @var Catch_[] Catches */ | 11 /** @var Catch_[] Catches */ |
12 public $catches; | 12 public $catches; |
13 /** @var null|Finally_ Optional finally node */ | 13 /** @var null|Finally_ Optional finally node */ |
14 public $finally; | 14 public $finally; |
15 | 15 |
16 /** | 16 /** |
17 * Constructs a try catch node. | 17 * Constructs a try catch node. |
18 * | 18 * |
19 * @param Node[] $stmts Statements | 19 * @param Node\Stmt[] $stmts Statements |
20 * @param Catch_[] $catches Catches | 20 * @param Catch_[] $catches Catches |
21 * @param null|Finally_ $finally Optionaly finally node | 21 * @param null|Finally_ $finally Optionaly finally node |
22 * @param array|null $attributes Additional attributes | 22 * @param array $attributes Additional attributes |
23 */ | 23 */ |
24 public function __construct(array $stmts, array $catches, Finally_ $finally = null, array $attributes = array()) { | 24 public function __construct(array $stmts, array $catches, Finally_ $finally = null, array $attributes = []) { |
25 parent::__construct($attributes); | 25 parent::__construct($attributes); |
26 $this->stmts = $stmts; | 26 $this->stmts = $stmts; |
27 $this->catches = $catches; | 27 $this->catches = $catches; |
28 $this->finally = $finally; | 28 $this->finally = $finally; |
29 } | 29 } |
30 | 30 |
31 public function getSubNodeNames() { | 31 public function getSubNodeNames() : array { |
32 return array('stmts', 'catches', 'finally'); | 32 return ['stmts', 'catches', 'finally']; |
33 } | |
34 | |
35 public function getType() : string { | |
36 return 'Stmt_TryCatch'; | |
33 } | 37 } |
34 } | 38 } |