Skip to content

Commit 62e82e4

Browse files
committed
Fixed the conversion in test
1 parent 5fe964a commit 62e82e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

util/ActionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,9 @@ private function convertResponseField(string $field): string
419419
private function convertDollarValueInVariable(string $value): string
420420
{
421421
foreach ($this->variables as $var) {
422-
if (preg_match_all("/\\\$\{$var\}/", $value)) {
423-
$value = str_replace('${'. $var .'}', "' . \$$var . '", $value);
424-
} else {
422+
$value = str_replace("\${{$var}}", "\$$var", $value);
423+
$value = str_replace("'\$$var'", "\$$var", $value);
424+
if (preg_match("/'[^']*\\\${$var}[^']*'/", $value)) {
425425
$value = str_replace("\$$var", "' . \$$var . '", $value);
426426
}
427427
}

0 commit comments

Comments
 (0)