Replace most empty() calls

This commit is contained in:
Fabien Potencier
2024-09-10 23:24:37 +02:00
parent a3496d148b
commit 9e9f8110bd
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -621,7 +621,7 @@ class ExpressionParser
$stream->expect(Token::PUNCTUATION_TYPE, '(', 'A list of arguments must begin with an opening parenthesis');
while (!$stream->test(Token::PUNCTUATION_TYPE, ')')) {
if (!empty($args)) {
if ($args) {
$stream->expect(Token::PUNCTUATION_TYPE, ',', 'Arguments must be separated by a comma');
// if the comma above was a trailing comma, early exit the argument parse loop