Skip to content

Commit daf5df7

Browse files
committed
Fixed float conversion issue in YAML tests
1 parent 468830d commit daf5df7

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

0 commit comments

Comments
 (0)