Strictify null check
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
d5c7bb2188
commit
5fe1f134f9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue