Skip to content

Commit 4d35654

Browse files
authored
Merge pull request #216 from LuckyWindsck/luckywindsck/widen-parameter-type
Allow `assertMatchesJsonSnapshot` to accept any JSON-serializable value
2 parents 62cbad3 + b441e64 commit 4d35654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MatchesSnapshots.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function assertMatchesHtmlSnapshot(string $actual): void
8989
$this->assertMatchesSnapshot($actual, new HtmlDriver);
9090
}
9191

92-
public function assertMatchesJsonSnapshot(array|string|null|int|float|bool $actual): void
92+
public function assertMatchesJsonSnapshot($actual): void
9393
{
9494
$this->assertMatchesSnapshot($actual, new JsonDriver);
9595
}

0 commit comments

Comments
 (0)