mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
add FILTER_SANITIZE_URL filter to filter_var
This commit is contained in:
parent
7d8d74d32a
commit
c6648aff87
@ -17,6 +17,7 @@ use UnexpectedValueException;
|
||||
use function in_array;
|
||||
|
||||
use const FILTER_NULL_ON_FAILURE;
|
||||
use const FILTER_SANITIZE_URL;
|
||||
use const FILTER_VALIDATE_BOOLEAN;
|
||||
use const FILTER_VALIDATE_DOMAIN;
|
||||
use const FILTER_VALIDATE_EMAIL;
|
||||
@ -78,6 +79,7 @@ class FilterVarReturnTypeProvider implements FunctionReturnTypeProviderInterface
|
||||
case FILTER_VALIDATE_URL:
|
||||
case FILTER_VALIDATE_EMAIL:
|
||||
case FILTER_VALIDATE_DOMAIN:
|
||||
case FILTER_SANITIZE_URL:
|
||||
$filter_type = Type::getString();
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user