fix: phpstan level=5

This commit is contained in:
origami11@yandex.ru 2024-01-24 17:13:38 +03:00
parent 1638d558c5
commit 2947e4aac3
8 changed files with 13 additions and 32 deletions

View file

@ -66,13 +66,10 @@ class Path
* Возвращает расширение файла
*
* @param string $fileName Полное имя файла
*
* @return string
*/
static function getExtension($fileName)
{
assert(is_string($fileName) || is_null($fileName));
return pathinfo($fileName, PATHINFO_EXTENSION);
}