Skip to content

Commit 34bad61

Browse files
authored
Release php-ast 1.0.4 (#139)
* Release php-ast 1.0.4 * Update date, add me as <developer> in package.xml
1 parent c391b7d commit 34bad61

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

ast_stub.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
const AST_NAME_LIST = 141;
2525
const AST_TRAIT_ADAPTATIONS = 142;
2626
const AST_USE = 143;
27+
const AST_TYPE_UNION = 144;
2728
const AST_NAME = 2048;
2829
const AST_CLOSURE_VAR = 2049;
2930
const AST_NULLABLE_TYPE = 2050;
@@ -127,15 +128,15 @@
127128
const PARAM_REF = 1;
128129
const PARAM_VARIADIC = 2;
129130
const TYPE_NULL = 1;
130-
const TYPE_BOOL = 16;
131+
const TYPE_BOOL = 18;
131132
const TYPE_LONG = 4;
132133
const TYPE_DOUBLE = 5;
133134
const TYPE_STRING = 6;
134135
const TYPE_ARRAY = 7;
135136
const TYPE_OBJECT = 8;
136-
const TYPE_CALLABLE = 17;
137-
const TYPE_VOID = 19;
138-
const TYPE_ITERABLE = 18;
137+
const TYPE_CALLABLE = 12;
138+
const TYPE_VOID = 14;
139+
const TYPE_ITERABLE = 13;
139140
const UNARY_BOOL_NOT = 14;
140141
const UNARY_BITWISE_NOT = 13;
141142
const UNARY_SILENCE = 260;

package.xml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@
1212
<email>nikic@php.net</email>
1313
<active>yes</active>
1414
</lead>
15-
<date>2019-07-27</date>
15+
<developer>
16+
<name>Tyson Andre</name>
17+
<user>tandre</user>
18+
<email>tandre@php.net</email>
19+
<active>yes</active>
20+
</developer>
21+
<date>2019-11-10</date>
1622
<version>
17-
<release>1.0.4dev</release>
18-
<api>1.0.3</api>
23+
<release>1.0.4</release>
24+
<api>1.0.4</api>
1925
</version>
2026
<stability>
2127
<release>stable</release>
@@ -24,7 +30,6 @@
2430
<license uri="https://github.com/nikic/php-ast/blob/master/LICENSE">BSD-3-Clause</license>
2531
<notes>
2632
- Add AST_TYPE_UNION to support PHP 8.0 Union Types.
27-
- TBD.
2833
</notes>
2934
<contents>
3035
<dir name="/">
@@ -86,6 +91,8 @@
8691
<file name="php74_ordinary_class.phpt" role="test" />
8792
<file name="php74_parenthesized_conditional.phpt" role="test" />
8893
<file name="php74_type_hints.phpt" role="test" />
94+
<file name="php80_union_types.phpt" role="test" />
95+
<file name="php80_union_types_nullable.phpt" role="test" />
8996
<file name="prop_doc_comments.phpt" role="test" />
9097
<file name="short_arrow_function.phpt" role="test" />
9198
<file name="short_arrow_function_return.phpt" role="test" />

php_ast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
extern zend_module_entry ast_module_entry;
88
#define phpext_ast_ptr &ast_module_entry
99

10-
#define PHP_AST_VERSION "1.0.4dev"
10+
#define PHP_AST_VERSION "1.0.4"
1111

1212
#ifdef PHP_WIN32
1313
# define PHP_AST_API __declspec(dllexport)

0 commit comments

Comments
 (0)