code: protected function pathInit(): void
      {
          [$path, $regExp] = $this->pathExtract();
          $this->path = null;
  
          if ($path) {
              $this->path = new Path($this->getDefaultRegex(), $path, $regExp);
          }
      }
docs: if this.path === string then new Path(string, [])
  else this.path === array then new Path(...this.path)