1--TEST-- 2'never' return type parsing 3--FILE-- 4<?php 5 6require __DIR__ . '/../util.php'; 7 8$code = <<<'PHP' 9<?php 10function up(): never { 11} 12PHP; 13 14$node = ast\parse_code($code, $version=85); 15echo ast_dump($node), "\n"; 16--EXPECTF-- 17AST_STMT_LIST 18 0: AST_FUNC_DECL 19 name: "up" 20 docComment: null 21 params: AST_PARAM_LIST 22 stmts: AST_STMT_LIST 23 returnType: AST_TYPE 24 flags: TYPE_NEVER (%d) 25 attributes: null 26 __declId: 0 27