Skip to content

Commit 6ba1db4

Browse files
Update src/MatchesSnapshots.php
Co-authored-by: Mathieu TUDISCO <[email protected]>
1 parent c1404c7 commit 6ba1db4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/MatchesSnapshots.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,11 @@ protected function getFileSnapshotDirectory(): string
134134
*/
135135
protected function shouldUpdateSnapshots(): bool
136136
{
137-
return in_array('--update-snapshots', $_SERVER['argv'], true)
138-
|| getenv('UPDATE_SNAPSHOTS') === 'true';
137+
if(in_array('--update-snapshots', $_SERVER['argv'], true)) {
138+
return true
139+
}
140+
141+
return getenv('UPDATE_SNAPSHOTS') === 'true';
139142
}
140143

141144
/*

0 commit comments

Comments
 (0)