Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / test / code / parser / stmt / function / nullableTypes.test
index d96df4faeb2dd5c64424e53a62f33ebeac1277c5..8bf2d31dab15f39808338da43eb30211cd165801 100644 (file)
@@ -9,7 +9,9 @@ function test(?Foo $bar, ?string $foo) : ?Baz {
 array(
     0: Stmt_Function(
         byRef: false
-        name: test
+        name: Identifier(
+            name: test
+        )
         params: array(
             0: Param(
                 type: NullableType(
@@ -21,16 +23,22 @@ array(
                 )
                 byRef: false
                 variadic: false
-                name: bar
+                var: Expr_Variable(
+                    name: bar
+                )
                 default: null
             )
             1: Param(
                 type: NullableType(
-                    type: string
+                    type: Identifier(
+                        name: string
+                    )
                 )
                 byRef: false
                 variadic: false
-                name: foo
+                var: Expr_Variable(
+                    name: foo
+                )
                 default: null
             )
         )