donatj / mock-webserver

Simple mock web server in PHP for unit testing.
MIT License
131 stars 21 forks source link

Truly ignoring exceptions from fclose #68

Closed cgimenes closed 7 months ago

cgimenes commented 7 months ago

https://github.com/donatj/mock-webserver/issues/67

donatj commented 7 months ago

fclose doesn't throw anything, so there's nothing to catch here.

https://www.php.net/manual/en/function.fclose.php

Return Values

Returns true on success or false on failure.

Can you provide an example of the problem you are attempting to resolve?

donatj commented 7 months ago

This was resolved by 1887dcbd8b4a52dde23a43f0d303c4509a065e83