Strictify null check

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2021-04-06 11:39:24 +00:00 committed by GitHub
parent d5c7bb2188
commit 5fe1f134f9
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}