Upgrade to rc5
This commit is contained in:
@@ -554,6 +554,10 @@ class F
|
||||
*/
|
||||
public static function read(string $file)
|
||||
{
|
||||
if (is_file($file) !== true) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return @file_get_contents($file);
|
||||
}
|
||||
|
||||
@@ -764,6 +768,18 @@ class F
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all extensions of a given file type
|
||||
* or `null` if the file type is unknown
|
||||
*
|
||||
* @param string $type
|
||||
* @return array|null
|
||||
*/
|
||||
public static function typeToExtensions(string $type): ?array
|
||||
{
|
||||
return static::$types[$type] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unzips a zip file
|
||||
*
|
||||
|
Reference in New Issue
Block a user