We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11daa34 commit 3894d31Copy full SHA for 3894d31
dev/tests/static/testsuite/Magento/Test/Legacy/UnsecureFunctionsUsageTest.php
@@ -159,10 +159,6 @@ private function prepareRegexp(array $functions)
159
if (empty($functions)) {
160
return '';
161
}
162
- $regexArray = [];
163
- foreach ($functions as $function) {
164
- $regexArray[] = '(?<!function |[^\s])\b' . $function . '\b\(';
165
- }
166
- return '/' . implode('|', $regexArray) . '/i';
+ return '/(?<!function |[^\s])\b(' . join('|', $functions) . ')\s*\(/i';
167
168
0 commit comments