Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/test/code/formatPreservation/modifierChange.test @ 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 | |
children |
comparison
equal
deleted
inserted
replaced
12:7a779792577d | 13:5fb285c0d0e3 |
---|---|
1 Modifier change | |
2 ----- | |
3 <?php | |
4 class Foo {} | |
5 abstract class Bar { | |
6 const | |
7 FOO = 42; | |
8 | |
9 var $foo | |
10 = 24; | |
11 | |
12 public function | |
13 foo() {} | |
14 } | |
15 ----- | |
16 $stmts[0]->flags = Stmt\Class_::MODIFIER_ABSTRACT; | |
17 $stmts[1]->flags = 0; | |
18 $stmts[1]->stmts[0]->flags = Stmt\Class_::MODIFIER_PRIVATE; | |
19 $stmts[1]->stmts[1]->flags = Stmt\Class_::MODIFIER_PROTECTED; | |
20 $stmts[1]->stmts[2]->flags |= Stmt\Class_::MODIFIER_FINAL; | |
21 ----- | |
22 <?php | |
23 abstract class Foo {} | |
24 class Bar { | |
25 private const | |
26 FOO = 42; | |
27 | |
28 protected $foo | |
29 = 24; | |
30 | |
31 public final function | |
32 foo() {} | |
33 } |