You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!file_exists($directory) && !@mkdir($directory, 0777, true)) {
83
+
thrownew \RuntimeException(sprintf('Unable to create directory "%s".', $directory));
84
+
}
77
85
}
78
-
} else {
79
-
$directory = dirname($fullpath);
80
-
if (!file_exists($directory) && !@mkdir($directory, 0777, true)) {
81
-
thrownew \RuntimeException(sprintf('Unable to create directory "%s".', $directory));
86
+
87
+
// save file
88
+
file_put_contents($fullpath, $content);
89
+
}
90
+
91
+
if (array_key_exists('save_handler', $options)) {
92
+
if (!is_callable($options['save_handler'])) {
93
+
thrownew \InvalidArgumentException(sprintf('Invalid type for save_handler option. Expected callable, but got "%s".', gettype($options['save_handler'])));
0 commit comments