Resolve PHP 8.1 deprecations (#1866)
Co-authored-by: Adrien Crivelli <adrien.crivelli@gmail.com> Co-authored-by: ArthurHoaro <arthur@hoa.ro>
This commit is contained in:
parent
221a2534b2
commit
dbd99f310f
9 changed files with 31 additions and 26 deletions
application/http
|
@ -61,6 +61,7 @@ class Url
|
|||
*/
|
||||
public function __construct($url)
|
||||
{
|
||||
$url = $url ?? '';
|
||||
$url = self::cleanupUnparsedUrl(trim($url));
|
||||
$this->parts = parse_url($url);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue