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.
1 parent c1404c7 commit 6ba1db4Copy full SHA for 6ba1db4
src/MatchesSnapshots.php
@@ -134,8 +134,11 @@ protected function getFileSnapshotDirectory(): string
134
*/
135
protected function shouldUpdateSnapshots(): bool
136
{
137
- return in_array('--update-snapshots', $_SERVER['argv'], true)
138
- || getenv('UPDATE_SNAPSHOTS') === 'true';
+ if(in_array('--update-snapshots', $_SERVER['argv'], true)) {
+ return true
139
+ }
140
+
141
+ return getenv('UPDATE_SNAPSHOTS') === 'true';
142
}
143
144
/*
0 commit comments