Resolve PHP 8.1 deprecations ()

Co-authored-by: Adrien Crivelli <adrien.crivelli@gmail.com>
Co-authored-by: ArthurHoaro <arthur@hoa.ro>
This commit is contained in:
Hazhar Galeh 2022-09-14 08:17:07 +02:00 committed by GitHub
parent 221a2534b2
commit dbd99f310f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 31 additions and 26 deletions
application/http

View file

@ -61,6 +61,7 @@ class Url
*/
public function __construct($url)
{
$url = $url ?? '';
$url = self::cleanupUnparsedUrl(trim($url));
$this->parts = parse_url($url);