Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On PHP >= 8.1 this throws a TypeError ``` Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in .\vendor\xpaw\php-source-query-class\SourceQuery\Socket.php:32 ``` Because a failed connection server sets this to boolean false. Better to check if the parameter passed to `fclose()` is an actual resource/stream.
- Loading branch information