chore: Аннотации к типам

This commit is contained in:
origami11@yandex.ru 2025-10-21 12:00:06 +03:00
parent 09a61244ca
commit 1e27648a12
17 changed files with 217 additions and 81 deletions

View file

@ -217,7 +217,6 @@ class Path
* Находит путь относительно текущего путя
*
* @param string $name Полный путь к файлу
*
* @return string Относительный путь к файлу
*/
public function relPath($name)
@ -258,6 +257,9 @@ class Path
return implode("/", $result);
}
/**
* @param string $path
*/
public function append($path)
{
$base = $this->__toString();
@ -270,7 +272,7 @@ class Path
* @param string ...$args
* @return string
*/
static function fromJoin(string ...$args) {
static function fromJoin(...$args) {
$result = [];
$parts0 = new Path(array_shift($args));
$result [] = $parts0->getParts();
@ -291,7 +293,7 @@ class Path
* @param string ...$args
* @return string
*/
static function join(string ...$args)
static function join(...$args)
{
$path = call_user_func_array([self::class, "fromJoin"], $args);
return self::makeUrl($path->url);