File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,11 @@ static public function createOrIgnore()
144
144
{
145
145
// file to file
146
146
$ pathToFile = self ::formatWithBaseDirectory ('.env ' );
147
+
148
+ // when system path is empty
149
+ if (empty (self ::$ sym_path )){
150
+ new static ();
151
+ }
147
152
148
153
// only attempt to create file if direcotry if valid
149
154
if (is_dir (self ::$ sym_path )){
@@ -308,8 +313,8 @@ static private function createDir_AndFiles($directory = null, $filename = null)
308
313
{
309
314
// if system path is null
310
315
// calling the `new self()` will initalize the class and set the default path for us
311
- if (is_null (self ::$ sym_path )){
312
- new self ();
316
+ if (empty (self ::$ sym_path )){
317
+ new static ();
313
318
}
314
319
315
320
// if \storage folder not found
You can’t perform that action at this time.
0 commit comments