Skip to content

Commit 595b92f

Browse files
committed
Truly ignoring exceptions from fclose
1 parent e166c98 commit 595b92f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/MockWebServer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ public function stop() : void {
132132
}
133133

134134
foreach( $this->descriptors as $descriptor ) {
135-
@fclose($descriptor);
135+
try {
136+
@fclose($descriptor);
137+
} catch (\Throwable $_) {}
136138
}
137139
}
138140

0 commit comments

Comments
 (0)