jose
                                
                                
                                
                                    jose copied to clipboard
                            
                            
                            
                        Remove deprecated FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED
All you have to do is simply remove these two flags, because both of them are implied when you use FILTER_VALIDATE_URL.
https://php.watch/versions/7.3/filter-var-flag-deprecation