Fix compatibility with PHP 5.4

This commit is contained in:
zhangrunyu
2022-01-13 10:14:15 +08:00
parent 8ab6050b34
commit 39e30fc64f
10 changed files with 77 additions and 35 deletions
+2 -2
View File
@@ -1953,9 +1953,9 @@ class testtaskModel extends model
{
$result->stepResults[0]['real'] = (string)$matchNode->$failure;
}
elseif(isset($matchNode->$failure[0]))
elseif(isset($matchNode->{$failure}[0]))
{
$result->stepResults[0]['real'] = (string)$matchNode->$failure[0];
$result->stepResults[0]['real'] = (string)$matchNode->{$failure}[0];
}
else
{