comparison vendor/nikic/php-parser/lib/PhpParser/NodeTraverserInterface.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; 3 namespace PhpParser;
4 4
5 interface NodeTraverserInterface 5 interface NodeTraverserInterface
6 { 6 {
7 /** 7 /**
8 * Adds a visitor. 8 * Adds a visitor.
9 * 9 *
10 * @param NodeVisitor $visitor Visitor to add 10 * @param NodeVisitor $visitor Visitor to add
11 */ 11 */
12 function addVisitor(NodeVisitor $visitor); 12 public function addVisitor(NodeVisitor $visitor);
13 13
14 /** 14 /**
15 * Removes an added visitor. 15 * Removes an added visitor.
16 * 16 *
17 * @param NodeVisitor $visitor 17 * @param NodeVisitor $visitor
18 */ 18 */
19 function removeVisitor(NodeVisitor $visitor); 19 public function removeVisitor(NodeVisitor $visitor);
20 20
21 /** 21 /**
22 * Traverses an array of nodes using the registered visitors. 22 * Traverses an array of nodes using the registered visitors.
23 * 23 *
24 * @param Node[] $nodes Array of nodes 24 * @param Node[] $nodes Array of nodes
25 * 25 *
26 * @return Node[] Traversed array of nodes 26 * @return Node[] Traversed array of nodes
27 */ 27 */
28 function traverse(array $nodes); 28 public function traverse(array $nodes) : array;
29 } 29 }
30