Upgrade to 3.5

This commit is contained in:
Bastian Allgeier
2020-12-15 11:01:41 +01:00
parent eabce32cf0
commit 9109130c9c
43 changed files with 306 additions and 159 deletions

View File

@@ -44,11 +44,12 @@ abstract class Handler
*/
public static function read(string $file): array
{
if (is_file($file) !== true) {
$contents = F::read($file);
if ($contents === false) {
throw new Exception('The file "' . $file . '" does not exist');
}
return static::decode(F::read($file));
return static::decode($contents);
}
/**