Skip to content

Commit

Permalink
WiP
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Mar 29, 2020
1 parent 4baad2c commit 042c103
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Configurator/TemplateChecks/AbstractXSLSupportCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ protected function checkXPathExpression(string $expr): void
preg_match_all('("[^"]*+"|\'[^\']*+\'|((?:[a-z]++-)*+[a-z]++)(?=\\s*\\())', $expr, $m);
foreach (array_filter($m[1]) as $funcName)
{
if (!in_array($funcName, $this->supportedFunctions, true) && !in_array($funcName, $this->supportedOperators, true))
if (!in_array($funcName, $this->supportedFunctions, true)
&& !in_array($funcName, $this->supportedOperators, true))
{
throw new RuntimeException('XPath function ' . $funcName . '() is not supported');
}
Expand Down

0 comments on commit 042c103

Please sign in to comment.