diff --git a/src/Socket.php b/src/Socket.php index 738c8c74..476491ae 100644 --- a/src/Socket.php +++ b/src/Socket.php @@ -134,8 +134,12 @@ if (!extension_loaded('pthreads')) { { $this->protocol = getprotobynumber($protocol); } - public function __destruct() { - if ($this->sock !== NULL) fclose($this->sock); + + public function __destruct() + { + if ($this->sock !== null) { + fclose($this->sock); + } } public function setOption(int $level, int $name, $value)