We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96bbf2c + dc9cf0e commit b86388fCopy full SHA for b86388f
2 files changed
phpunit.xml
@@ -3,6 +3,8 @@
3
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4
bootstrap="vendor/autoload.php"
5
colors="true"
6
+ failOnWarning="true"
7
+ failOnRisky="true"
8
>
9
<testsuites>
10
<testsuite name="Test Suite">
src/Benchmark.php
@@ -85,9 +85,9 @@ public function round(?int $precision): self
85
public function compare(array|Closure ...$callbacks): static
86
{
87
$values = match (true) {
88
- is_array($callbacks[0]) => $callbacks[0],
89
- is_array($callbacks) => $callbacks,
90
- default => func_get_args()
+ is_array($callbacks[0] ?? null) => $callbacks[0],
+ is_array($callbacks) => $callbacks,
+ default => func_get_args()
91
};
92
93
$this->clear();
0 commit comments