src/mako/file/FileInfo.php
public function getMimeType(): ?string
	{
		$info = finfo_open(FILEINFO_MIME_TYPE);

		$mime = finfo_file($info, $this->getPathname());

		finfo_close($info);

		return $mime ?: null;
	}
public function getMimeType(): ?string
	{
		$info = finfo_open(FILEINFO_MIME_TYPE);

		$mime = finfo_file($info, $this->getPathname());

		finfo_close($info);

		return $mime ?: null;
	}
public function getMimeType ( ) : ? string { $ info = finfo_open ( FILEINFO_MIME_TYPE ) ; $ mime = finfo_file ( $ info , $ this -> getPathname ( ) ) ; finfo_close ( $ info ) ; return $ mime ? : null ; }
Returns the MIME type of the file.

@return string|null
Returns the MIME type of the file .