@@ -42,7 +42,7 @@ public function markTestIncompleteIfSnapshotsHaveChanged()
42
42
$ this ->markTestIncomplete ($ formattedMessages );
43
43
}
44
44
45
- public function assertMatchesSnapshot ($ actual , Driver $ driver = null )
45
+ public function assertMatchesSnapshot ($ actual , Driver $ driver = null ): void
46
46
{
47
47
if (! is_null ($ driver )) {
48
48
$ this ->doSnapshotAssertion ($ actual , $ driver );
@@ -59,7 +59,7 @@ public function assertMatchesSnapshot($actual, Driver $driver = null)
59
59
$ this ->doSnapshotAssertion ($ actual , new ObjectDriver ());
60
60
}
61
61
62
- public function assertMatchesFileHashSnapshot ($ filePath )
62
+ public function assertMatchesFileHashSnapshot ($ filePath ): void
63
63
{
64
64
if (! file_exists ($ filePath )) {
65
65
$ this ->fail ('File does not exist ' );
@@ -255,21 +255,21 @@ protected function doFileSnapshotAssertion(string $filePath): void
255
255
$ this ->assertTrue (true );
256
256
}
257
257
258
- protected function createSnapshotAndMarkTestIncomplete (Snapshot $ snapshot , $ actual )
258
+ protected function createSnapshotAndMarkTestIncomplete (Snapshot $ snapshot , $ actual ): void
259
259
{
260
260
$ snapshot ->create ($ actual );
261
261
262
262
$ this ->registerSnapshotChange ("Snapshot created for {$ snapshot ->id ()}" );
263
263
}
264
264
265
- protected function updateSnapshotAndMarkTestIncomplete (Snapshot $ snapshot , $ actual )
265
+ protected function updateSnapshotAndMarkTestIncomplete (Snapshot $ snapshot , $ actual ): void
266
266
{
267
267
$ snapshot ->create ($ actual );
268
268
269
269
$ this ->registerSnapshotChange ("Snapshot updated for {$ snapshot ->id ()}" );
270
270
}
271
271
272
- protected function rethrowExpectationFailedExceptionWithUpdateSnapshotsPrompt ($ exception )
272
+ protected function rethrowExpectationFailedExceptionWithUpdateSnapshotsPrompt ($ exception ): void
273
273
{
274
274
$ newMessage = $ exception ->getMessage ()."\n\n" .
275
275
'Snapshots can be updated by passing ' .
@@ -284,7 +284,7 @@ protected function rethrowExpectationFailedExceptionWithUpdateSnapshotsPrompt($e
284
284
throw $ exception ;
285
285
}
286
286
287
- protected function registerSnapshotChange (string $ message )
287
+ protected function registerSnapshotChange (string $ message ): void
288
288
{
289
289
$ this ->snapshotChanges [] = $ message ;
290
290
}
0 commit comments