Skip to content

Commit

Permalink
Update Helper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet committed Mar 6, 2024
1 parent f4ac752 commit ede1fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static function scriptInSubshell(string $script): string
public static function temporaryDirectory(): TemporaryDirectory
{
return tap(
TemporaryDirectory::make('' ?? config('task-runner.temporary_directory') ?: ''),
TemporaryDirectory::make(config('task-runner.temporary_directory') ?: ''),
fn ($temporaryDirectory) => register_shutdown_function(fn () => $temporaryDirectory->delete())
);
}
Expand Down

0 comments on commit ede1fa7

Please sign in to comment.