【PHP composer】elasticsearc包报错:"filter_var(): explicit use of FILTER_FLAG_SCHEME_REQUIRED and FILTER_
1.出现这个问题的原因是PHP7.3的filter_var()函数放弃了对这两个参数的支持。/***@paramstring$host**@returnstring*/privatefunctionprependMissingScheme($host){if(!filter_var($host,FILTER_VALIDATE_URL,FILTER_FLAG_SCHEME_REQUIRED)){$h