new Совместимость с php8

This commit is contained in:
origami11@yandex.ru 2023-04-19 11:25:28 +03:00
parent 2edd65d145
commit 5748ea9148
7 changed files with 17 additions and 30 deletions

View file

@ -16,10 +16,9 @@ class Path
protected $url = array();
protected $absolute = false;
public function __construct($path)
public function __construct($path = '')
{
// assert(is_string($path));
//assert(is_string($path));
$this->url = parse_url($path);
if (isset($this->url['path'])) {
@ -289,6 +288,7 @@ class Path
*/
static function fromJoin($_rest) {
$args = func_get_args();
$result = array();
$parts0 = new Path(array_shift($args));
$result [] = $parts0->getParts();