Security update for Core, with self-updated composer
[yaffs-website] / vendor / nikic / php-parser / test / code / parser / stmt / function / typeDeclarations.test
diff --git a/vendor/nikic/php-parser/test/code/parser/stmt/function/typeDeclarations.test b/vendor/nikic/php-parser/test/code/parser/stmt/function/typeDeclarations.test
new file mode 100644 (file)
index 0000000..53c462c
--- /dev/null
@@ -0,0 +1,49 @@
+Type hints
+-----
+<?php
+
+function a($b, array $c, callable $d, E $f) {}
+-----
+array(
+    0: Stmt_Function(
+        byRef: false
+        name: a
+        params: array(
+            0: Param(
+                type: null
+                byRef: false
+                variadic: false
+                name: b
+                default: null
+            )
+            1: Param(
+                type: array
+                byRef: false
+                variadic: false
+                name: c
+                default: null
+            )
+            2: Param(
+                type: callable
+                byRef: false
+                variadic: false
+                name: d
+                default: null
+            )
+            3: Param(
+                type: Name(
+                    parts: array(
+                        0: E
+                    )
+                )
+                byRef: false
+                variadic: false
+                name: f
+                default: null
+            )
+        )
+        returnType: null
+        stmts: array(
+        )
+    )
+)