Return boolean fix

This commit is contained in:
Dennis Eichhorn 2017-04-09 21:10:35 +02:00
parent 19e6d054d5
commit fdc0bf8ff7

View File

@ -48,6 +48,6 @@ abstract class Hostname extends ValidatorAbstract
*/
public static function isValid($value) : bool
{
return filter_var(gethostbyname($value), FILTER_VALIDATE_IP);
return filter_var(gethostbyname($value), FILTER_VALIDATE_IP) !== false;
}
}