Skip to content

Commit 9ce89c8

Browse files
committed
Fixed issue on PHP7.3 because preg_quote now also quotes #.
1 parent 275bf55 commit 9ce89c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Lib/Connector/Yii2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private function getDomainRegex($template)
221221
$template = preg_replace_callback(
222222
'/<(?:\w+):?([^>]+)?>/u',
223223
function ($matches) use (&$parameters) {
224-
$key = '#' . count($parameters) . '#';
224+
$key = '__' . count($parameters) . '__';
225225
$parameters[$key] = isset($matches[1]) ? $matches[1] : '\w+';
226226
return $key;
227227
},

0 commit comments

Comments
 (0)