Skip to content

Commit ee85fc3

Browse files
committed
build/gen_stub.php: fix superfluous new line on enum case generation
1 parent 435a5ac commit ee85fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/gen_stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ public function __construct(string $name, ?Expr $value) {
16081608
public function getDeclaration(): string {
16091609
$escapedName = addslashes($this->name);
16101610
if ($this->value === null) {
1611-
$code = "\n\tzend_enum_add_case_cstr(class_entry, \"$escapedName\", NULL);\n";
1611+
$code = "\tzend_enum_add_case_cstr(class_entry, \"$escapedName\", NULL);\n";
16121612
} else {
16131613
$evaluator = new ConstExprEvaluator(function (Expr $expr) {
16141614
throw new Exception("Enum case $this->name has an unsupported value");

0 commit comments

Comments
 (0)