chore: Аннотации к типам
This commit is contained in:
parent
5e8958969f
commit
f964472e62
28 changed files with 140 additions and 36 deletions
|
|
@ -55,8 +55,8 @@ class Path
|
|||
|
||||
/**
|
||||
* Базовое имя
|
||||
* @param $path
|
||||
* @return mixed
|
||||
* @param string $path
|
||||
* @return string
|
||||
*/
|
||||
public static function basename($path)
|
||||
{
|
||||
|
|
@ -120,6 +120,7 @@ class Path
|
|||
* Преобразует строку пути в массив
|
||||
*
|
||||
* @param string $path Путь
|
||||
* @return array<string>
|
||||
*/
|
||||
public static function listFromString(string $path): array
|
||||
{
|
||||
|
|
@ -129,6 +130,8 @@ class Path
|
|||
|
||||
/**
|
||||
* Преобразует относительный путь в абсолютный
|
||||
* @param array<string> $path Путь
|
||||
* @return array<string>
|
||||
*/
|
||||
public static function optimize($path) //
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue