new Совместимость с php8
This commit is contained in:
parent
2edd65d145
commit
5748ea9148
7 changed files with 17 additions and 30 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue