diff --git a/src/Psalm/Internal/Provider/ReturnTypeProvider/FilterVarReturnTypeProvider.php b/src/Psalm/Internal/Provider/ReturnTypeProvider/FilterVarReturnTypeProvider.php index cbc06baf8..19c839c44 100644 --- a/src/Psalm/Internal/Provider/ReturnTypeProvider/FilterVarReturnTypeProvider.php +++ b/src/Psalm/Internal/Provider/ReturnTypeProvider/FilterVarReturnTypeProvider.php @@ -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; }