fix: phpstan level=5
This commit is contained in:
parent
1638d558c5
commit
2947e4aac3
8 changed files with 13 additions and 32 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue