Skip to content

Commit ca08898

Browse files
committed
Remove FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED since
they are default and deprecated in php 7.3
1 parent f05e06f commit ca08898

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

composer-lock-diff

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ function load($fileish, $base_path = '') {
193193
}
194194

195195
function isUrl($string) {
196-
return filter_var($string, FILTER_VALIDATE_URL,
197-
FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_PATH_REQUIRED);
196+
return filter_var($string, FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED);
198197
}
199198

200199
function mustDecodeJson($json, $context) {

0 commit comments

Comments
 (0)