Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / grammar / rebuildParsers.php
index 340b0eacd30070364783183898f680e16a8fddb5..3be5edb64d57d9edb77e767719e3c57a78ae21e2 100644 (file)
@@ -176,11 +176,11 @@ function resolveMacros($code) {
             }
 
             if ('makeNop' == $name) {
-                assertArgs(2, $args, $name);
+                assertArgs(3, $args, $name);
 
                 return '$startAttributes = ' . $args[1] . ';'
                 . ' if (isset($startAttributes[\'comments\']))'
-                . ' { ' . $args[0] . ' = new Stmt\Nop([\'comments\' => $startAttributes[\'comments\']]); }'
+                . ' { ' . $args[0] . ' = new Stmt\Nop($startAttributes + ' . $args[2] . '); }'
                 . ' else { ' . $args[0] . ' = null; }';
             }