From 821b1a86b656c74f5a9d957cca9771bcfd42b9ce Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Mon, 9 Jan 2023 20:07:21 +0100 Subject: [PATCH] Fix strict comparaision --- src/Gelf/Transport/TcpTransport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gelf/Transport/TcpTransport.php b/src/Gelf/Transport/TcpTransport.php index 1444412..af6a216 100644 --- a/src/Gelf/Transport/TcpTransport.php +++ b/src/Gelf/Transport/TcpTransport.php @@ -43,7 +43,7 @@ public function __construct( ) { parent::__construct(); - if ($port == self::AUTO_SSL_PORT && $this->sslOptions == null) { + if ($port === self::AUTO_SSL_PORT && $this->sslOptions === null) { $this->sslOptions = new SslOptions(); }