fix: Определения типов

This commit is contained in:
origami11@yandex.ru 2025-10-01 12:37:39 +03:00
parent 9f6fd74b17
commit dd74a97894
28 changed files with 334 additions and 249 deletions

View file

@ -155,7 +155,10 @@ class Path
}
// Сравнение двух путей на равентство
public function equal($path/*: Path*/)
/**
* @param Path $path
*/
public function equal($path)
{
$count = count($this->path);
if ($count == count($path->path)) {
@ -199,11 +202,11 @@ class Path
/**
* Проверяет является ли папка родительской для другой папки
*
* @parma Path $path
* @param Path $path
*
* @return boolean
*/
public function isParent($path/*: Path*/)
public function isParent($path)
{
if (isset($this->url['host']) && isset($path->url['host'])
&& ($this->url['host'] != $path->url['host'])) return false;