Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / NodeTraverserInterface.php
index 0f88e4671df7154d77e12fa7858a4efe7ce8f31f..77ff3d27f65c61f555f75fc9595b172fae2b2165 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 
 namespace PhpParser;
 
@@ -9,14 +9,14 @@ interface NodeTraverserInterface
      *
      * @param NodeVisitor $visitor Visitor to add
      */
-    function addVisitor(NodeVisitor $visitor);
+    public function addVisitor(NodeVisitor $visitor);
 
     /**
      * Removes an added visitor.
      *
      * @param NodeVisitor $visitor
      */
-    function removeVisitor(NodeVisitor $visitor);
+    public function removeVisitor(NodeVisitor $visitor);
 
     /**
      * Traverses an array of nodes using the registered visitors.
@@ -25,6 +25,5 @@ interface NodeTraverserInterface
      *
      * @return Node[] Traversed array of nodes
      */
-    function traverse(array $nodes);
+    public function traverse(array $nodes) : array;
 }
-