Skip to content

Commit

Permalink
chore: override changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Mar 14, 2024
1 parent 521a41d commit ac07bc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions overrides/Runner/ResultCache/DefaultResultCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
use function file_put_contents;
use function is_array;
use function is_dir;
use function is_file;
use function json_decode;
use function json_encode;
use function Pest\version;
Expand Down Expand Up @@ -129,13 +128,15 @@ public function time(string $id): float

public function load(): void
{
if (! is_file($this->cacheFilename)) {
$contents = @file_get_contents($this->cacheFilename);

if ($contents === false) {
return;
}

$data = json_decode(
file_get_contents($this->cacheFilename),
true
$contents,
true,
);

if ($data === null) {
Expand Down
2 changes: 1 addition & 1 deletion src/Bootstrappers/BootOverrides.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class BootOverrides implements Bootstrapper
*/
public const FILES = [
'c7b9c8a96006dea314204a8f09a8764e51ce0b9b79aadd58da52e8c328db4870' => 'Runner/Filter/NameFilterIterator.php',
'52b2574e96269aca1bb2d41bbf418c3bcf23dd21d14c66f90789025c309e39df' => 'Runner/ResultCache/DefaultResultCache.php',
'c5381bc34f0cb437a58ce6cf641a0e0d4a32c4190959f5419e4bd509f9caa4b8' => 'Runner/ResultCache/DefaultResultCache.php',
'bc8718c89264f65800beabc23e51c6d3bcff87dfc764a12179ef5dbfde272c8b' => 'Runner/TestSuiteLoader.php',
'f41e48d6cb546772a7de4f8e66b6b7ce894a5318d063eb52e354d206e96c701c' => 'TextUI/Command/Commands/WarmCodeCoverageCacheCommand.php',
'cb7519f2d82893640b694492cf7ec9528da80773cc1d259634181b5d393528b5' => 'TextUI/Output/Default/ProgressPrinter/Subscriber/TestSkippedSubscriber.php',
Expand Down

0 comments on commit ac07bc1

Please sign in to comment.