Skip to content

Commit f93fc83

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

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
@@ -1616,7 +1616,7 @@ public function __construct(string $name, ?Expr $value) {
16161616
public function getDeclaration(): string {
16171617
$escapedName = addslashes($this->name);
16181618
if ($this->value === null) {
1619-
$code = "\n\tzend_enum_add_case_cstr(class_entry, \"$escapedName\", NULL);\n";
1619+
$code = "\tzend_enum_add_case_cstr(class_entry, \"$escapedName\", NULL);\n";
16201620
} else {
16211621
$evaluator = new ConstExprEvaluator(function (Expr $expr) {
16221622
throw new Exception("Enum case $this->name has an unsupported value");

0 commit comments

Comments
 (0)