Skip to content

Commit fb35d1e

Browse files
committed
Drop quote marks in error messages
1 parent 7ab0a1d commit fb35d1e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Zend/tests/closure_const_expr/disallows_non_static.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ var_dump($foo->d);
1515

1616
?>
1717
--EXPECTF--
18-
Fatal error: Closures in constant expressions must be "static" in %s on line %d
18+
Fatal error: Closures in constant expressions must be static in %s on line %d

Zend/tests/closure_const_expr/disallows_using_variables.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ var_dump(Closure);
1414

1515
?>
1616
--EXPECTF--
17-
Fatal error: Cannot "use(...)" variables in constant expression in %s on line %d
17+
Fatal error: Cannot use(...) variables in constant expression in %s on line %d

Zend/zend_compile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11190,11 +11190,11 @@ static void zend_compile_const_expr_closure(zend_ast **ast_ptr)
1119011190
zend_ast *uses_ast = closure_ast->child[1];
1119111191
if (!(closure_ast->flags & ZEND_ACC_STATIC)) {
1119211192
zend_error_noreturn(E_COMPILE_ERROR,
11193-
"Closures in constant expressions must be \"static\"");
11193+
"Closures in constant expressions must be static");
1119411194
}
1119511195
if (uses_ast) {
1119611196
zend_error_noreturn(E_COMPILE_ERROR,
11197-
"Cannot \"use(...)\" variables in constant expression");
11197+
"Cannot use(...) variables in constant expression");
1119811198
}
1119911199

1120011200
znode node;

0 commit comments

Comments
 (0)