1--TEST--
2ast_dump() with AST_DUMP_EXCLUDE_DOC_COMMENT
3--FILE--
4<?php
5
6require __DIR__ . '/../util.php';
7
8$code = <<<'PHP'
9<?php
10/**
11 * test
12 * @param mixed $foo
13 * @return void
14 */
15function test($foo) {
16}
17PHP;
18
19$ast = ast\parse_code($code, $version=80);
20echo ast_dump($ast, AST_DUMP_EXCLUDE_DOC_COMMENT);
21
22?>
23--EXPECT--
24AST_STMT_LIST
25    0: AST_FUNC_DECL
26        name: "test"
27        params: AST_PARAM_LIST
28            0: AST_PARAM
29                type: null
30                name: "foo"
31                default: null
32                attributes: null
33        stmts: AST_STMT_LIST
34        returnType: null
35        attributes: null
36        __declId: 0
37