Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/VCR/Util/StreamProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace VCR\Util;

use Throwable;
use VCR\CodeTransform\AbstractCodeTransform;
use VCR\Configuration;

Expand Down Expand Up @@ -300,7 +301,11 @@
// Use native error handler
return false;
});
$result = @stat($path);
try {
$result = @stat($path);
} catch (Throwable) {

Check failure on line 306 in src/VCR/Util/StreamProcessor.php

View workflow job for this annotation

GitHub Actions / PHPStan

In method "VCR\Util\StreamProcessor::url_stat", caught "Throwable" must be rethrown. Either catch a more specific exception or add a "throw" clause in the "catch" block to propagate the exception. More info: http://bit.ly/failloud
$result = false;
}
restore_error_handler();
} else {
$result = stat($path);
Expand Down
Loading