Skip to content

Commit 2ae68a0

Browse files
Never inline YAML arrays
1 parent 20c0df0 commit 2ae68a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Drivers/YamlDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function serialize($data): string
1919
throw new CantBeSerialized('Only strings can be serialized to json');
2020
}
2121

22-
return Yaml::dump($data);
22+
return Yaml::dump($data, PHP_INT_MAX);
2323
}
2424

2525
public function extension(): string
@@ -30,7 +30,7 @@ public function extension(): string
3030
public function match($expected, $actual)
3131
{
3232
if (is_array($actual)) {
33-
$actual = Yaml::dump($actual);
33+
$actual = Yaml::dump($actual, PHP_INT_MAX);
3434
}
3535

3636
Assert::assertEquals($expected, $actual);

0 commit comments

Comments
 (0)