Skip to content

Commit 80958e6

Browse files
committed
Add TODO comments
1 parent 68b783d commit 80958e6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/php/lang/ast/emit/PHP81.class.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ protected function emitArguments($result, $arguments) {
4141
}
4242

4343
protected function emitEnumCase($result, $case) {
44+
45+
// TODO: Once enum PR is merged, remove this conditional and refactor the
46+
// code into a `RewriteEnums` trait to be included for all other versions
4447
if (Type::$ENUMS) {
4548
$result->out->write('case '.$case->name);
4649
if ($case->expression) {
@@ -54,6 +57,9 @@ protected function emitEnumCase($result, $case) {
5457
}
5558

5659
protected function emitEnum($result, $enum) {
60+
61+
// TODO: Once enum PR is merged, remove this conditional and refactor the
62+
// code into a `RewriteEnums` trait to be included for all other versions
5763
if (Type::$ENUMS) {
5864
array_unshift($result->type, $enum);
5965
array_unshift($result->meta, []);

0 commit comments

Comments
 (0)