Skip to content

Commit e9cb65c

Browse files
committed
Fixed float conversion issue in YAML tests
1 parent ffff2a0 commit e9cb65c

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
@@ -354,7 +354,7 @@ public static function render(string $fileName, array $params = []): string
354354
} elseif ($value instanceof \stdClass) {
355355
$value = 'new \stdClass';
356356
} elseif (is_numeric($value)) {
357-
$value = (string) $value;
357+
$value = var_export($value, true);
358358
}
359359
$output = str_replace($name, $value, $output);
360360
}

0 commit comments

Comments
 (0)