Skip to content

Commit

Permalink
Merge pull request #10214 from kkmuffme/filter-var-sanitize-url
Browse files Browse the repository at this point in the history
add FILTER_SANITIZE_URL filter to filter_var
  • Loading branch information
orklah authored Sep 26, 2023
2 parents 7d8d74d + c6648af commit a70b2c0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
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;
Expand Down Expand Up @@ -78,6 +79,7 @@ public static function getFunctionReturnType(FunctionReturnTypeProviderEvent $ev
case FILTER_VALIDATE_URL:
case FILTER_VALIDATE_EMAIL:
case FILTER_VALIDATE_DOMAIN:
case FILTER_SANITIZE_URL:
$filter_type = Type::getString();
break;
}
Expand Down

0 comments on commit a70b2c0

Please sign in to comment.