1--TEST-- 2The object type is recognized 3--FILE-- 4<?php 5 6require __DIR__ . '/../util.php'; 7 8$code = <<<'PHP' 9<?php 10function test(object $obj) : object {} 11PHP; 12 13echo ast_dump(ast\parse_code($code, $version=70)); 14 15?> 16--EXPECTF-- 17AST_STMT_LIST 18 0: AST_FUNC_DECL 19 name: "test" 20 docComment: null 21 params: AST_PARAM_LIST 22 0: AST_PARAM 23 type: AST_TYPE 24 flags: TYPE_OBJECT (%d) 25 name: "obj" 26 default: null 27 stmts: AST_STMT_LIST 28 returnType: AST_TYPE 29 flags: TYPE_OBJECT (%d) 30 __declId: 0 31