There was an error while loading. Please reload this page.
1 parent 6cc06e2 commit 4b8f627Copy full SHA for 4b8f627
src/VCR/Util/StreamProcessor.php
@@ -82,6 +82,8 @@ public function intercept(): void
82
*/
83
public function restore(): void
84
{
85
+ // stream_wrapper_restore can throw when stream_wrapper was never changed, so we unregister first
86
+ stream_wrapper_unregister(self::PROTOCOL);
87
stream_wrapper_restore(self::PROTOCOL);
88
}
89
0 commit comments