Skip to content

Commit 78ff55b

Browse files
committed
Make lang.ast.syntax.PHP::type0() public
1 parent 3ddd598 commit 78ff55b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ XP AST ChangeLog
33

44
## ?.?.? / ????-??-??
55

6+
## 11.8.0 / 2025-12-21
7+
8+
* Made `lang.ast.syntax.PHP::type0()` public. This method parses a single
9+
type without support for unions and intersections
10+
(@thekid)
11+
612
## 11.7.1 / 2025-07-06
713

814
* Fixed more than one annotation on an element only yielding the last.

src/main/php/lang/ast/syntax/PHP.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ private function member($parse) {
12451245
return $expr;
12461246
}
12471247

1248-
private function type0($parse, $optional) {
1248+
public function type0($parse, $optional= false) {
12491249
static $literal= [
12501250
'string' => true,
12511251
'int' => true,

0 commit comments

Comments
 (0)