Skip to content

Commit 65c4b16

Browse files
committed
Ensure return value is always a boolean
1 parent 5903ad3 commit 65c4b16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/App/Utility/IPAddress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class IPAddress
2323
*/
2424
public function isValidAddress(string $address): bool
2525
{
26-
return filter_var($address, FILTER_VALIDATE_IP);
26+
return $address === filter_var($address, FILTER_VALIDATE_IP);
2727
}
2828

2929
/**

0 commit comments

Comments
 (0)