Skip to content

Commit 9ac515b

Browse files
Merge branch '3.4' into 4.1
* 3.4: [DI] configure inlined services before injecting them when dumping the container Consistently throw exceptions on a single line fix fopen calls Update .editorconfig
2 parents 2a4df76 + b2d6f39 commit 9ac515b

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

XPath/Extension/FunctionExtension.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,7 @@ public function translateContains(XPathExpr $xpath, FunctionNode $function): XPa
133133
$arguments = $function->getArguments();
134134
foreach ($arguments as $token) {
135135
if (!($token->isString() || $token->isIdentifier())) {
136-
throw new ExpressionErrorException(
137-
'Expected a single string or identifier for :contains(), got '
138-
.implode(', ', $arguments)
139-
);
136+
throw new ExpressionErrorException('Expected a single string or identifier for :contains(), got '.implode(', ', $arguments));
140137
}
141138
}
142139

@@ -154,10 +151,7 @@ public function translateLang(XPathExpr $xpath, FunctionNode $function): XPathEx
154151
$arguments = $function->getArguments();
155152
foreach ($arguments as $token) {
156153
if (!($token->isString() || $token->isIdentifier())) {
157-
throw new ExpressionErrorException(
158-
'Expected a single string or identifier for :lang(), got '
159-
.implode(', ', $arguments)
160-
);
154+
throw new ExpressionErrorException('Expected a single string or identifier for :lang(), got '.implode(', ', $arguments));
161155
}
162156
}
163157

XPath/Extension/HtmlExtension.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,7 @@ public function translateLang(XPathExpr $xpath, FunctionNode $function)
158158
$arguments = $function->getArguments();
159159
foreach ($arguments as $token) {
160160
if (!($token->isString() || $token->isIdentifier())) {
161-
throw new ExpressionErrorException(
162-
'Expected a single string or identifier for :lang(), got '
163-
.implode(', ', $arguments)
164-
);
161+
throw new ExpressionErrorException('Expected a single string or identifier for :lang(), got '.implode(', ', $arguments));
165162
}
166163
}
167164

0 commit comments

Comments
 (0)