From 5fe1f134f927d18dc2c363bbdda5d7acfbdd49d9 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 6 Apr 2021 11:39:24 +0000 Subject: Strictify null check Signed-off-by: Lukas Reschke --- lib/private/Http/Client/DnsPinMiddleware.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/private/Http/Client') diff --git a/lib/private/Http/Client/DnsPinMiddleware.php b/lib/private/Http/Client/DnsPinMiddleware.php index 5a87ff705a6..0406405c430 100644 --- a/lib/private/Http/Client/DnsPinMiddleware.php +++ b/lib/private/Http/Client/DnsPinMiddleware.php @@ -36,7 +36,8 @@ class DnsPinMiddleware { public function __construct( NegativeDnsCache $negativeDnsCache, - LocalAddressChecker $localAddressChecker) { + LocalAddressChecker $localAddressChecker + ) { $this->negativeDnsCache = $negativeDnsCache; $this->localAddressChecker = $localAddressChecker; } @@ -106,7 +107,7 @@ class DnsPinMiddleware { '443', ]; - if ($port != null) { + if ($port !== null) { $ports[] = (string)$port; } -- cgit v1.2.3