Skip to content

Commit e1ed999

Browse files
committed
Fixed float conversion issue in YAML tests
1 parent 4b2f5e3 commit e1ed999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/YamlTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ public static function render(string $fileName, array $params = []): string
327327
} elseif ($value instanceof \stdClass) {
328328
$value = 'new \stdClass';
329329
} elseif (is_numeric($value)) {
330-
$value = (string) $value;
330+
$value = var_export($value, true);
331331
}
332332
$output = str_replace($name, $value, $output);
333333
}

0 commit comments

Comments
 (0)