Extension: filterenhancementgood first issue
Metriche repository
- Star
- (596 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
From manual page: https://php.net/function.filter-var
There is no example with if and I saw a lot of implementations like:
if (!filter_var($value, $type)) {
echo 'error';
}
and it should be:
if (filter_var($value, $type) !== $value) {
echo 'error';
}
Especially, when you validated with FILTER_VALIDATE_BOOLEAN filter.