mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-27 08:28:40 +00:00
Return boolean fix
This commit is contained in:
parent
19e6d054d5
commit
fdc0bf8ff7
|
|
@ -48,6 +48,6 @@ abstract class Hostname extends ValidatorAbstract
|
||||||
*/
|
*/
|
||||||
public static function isValid($value) : bool
|
public static function isValid($value) : bool
|
||||||
{
|
{
|
||||||
return filter_var(gethostbyname($value), FILTER_VALIDATE_IP);
|
return filter_var(gethostbyname($value), FILTER_VALIDATE_IP) !== false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user