diff --git a/src/Utils/FileSystem.php b/src/Utils/FileSystem.php index bf1ee0240..0e2dff645 100644 --- a/src/Utils/FileSystem.php +++ b/src/Utils/FileSystem.php @@ -131,10 +131,11 @@ public static function read(string $file): string /** * Writes a string to a file. + * @param int|NULL $mode * @return void * @throws Nette\IOException */ - public static function write(string $file, string $content, int $mode = 0666) + public static function write(string $file, string $content, $mode = 0666) { static::createDir(dirname($file)); if (@file_put_contents($file, $content) === FALSE) { // @ is escalated to exception