comparison vendor/nikic/php-parser/lib/PhpParser/Internal/DiffElem.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
children
comparison
equal deleted inserted replaced
12:7a779792577d 13:5fb285c0d0e3
1 <?php declare(strict_types=1);
2
3 namespace PhpParser\Internal;
4
5 /**
6 * @internal
7 */
8 class DiffElem
9 {
10 const TYPE_KEEP = 0;
11 const TYPE_REMOVE = 1;
12 const TYPE_ADD = 2;
13 const TYPE_REPLACE = 3;
14
15 /** @var int One of the TYPE_* constants */
16 public $type;
17 /** @var mixed Is null for add operations */
18 public $old;
19 /** @var mixed Is null for remove operations */
20 public $new;
21
22 public function __construct(int $type, $old, $new) {
23 $this->type = $type;
24 $this->old = $old;
25 $this->new = $new;
26 }
27 }