From dc7931424fbd1bbbdc5a0be6047cfc4ac272439e Mon Sep 17 00:00:00 2001 From: Aydin Hassan Date: Sun, 6 Jun 2021 13:03:28 +0100 Subject: [PATCH] Fix type check + mkdir --- app/config.php | 2 +- src/Solution/InTempSolutionMapper.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/config.php b/app/config.php index d49bd9f0..9a7b532f 100644 --- a/app/config.php +++ b/app/config.php @@ -270,7 +270,7 @@ }, CodePatcher::class => function (ContainerInterface $c) { $patch = (new Patch) - ->withInsertion(new Insertion(Insertion::TYPE_BEFORE, 'ini_set("display_errors", 1);')) + ->withInsertion(new Insertion(Insertion::TYPE_BEFORE, 'ini_set("display_errors", "1");')) ->withInsertion(new Insertion(Insertion::TYPE_BEFORE, 'error_reporting(E_ALL);')) ->withInsertion(new Insertion(Insertion ::TYPE_BEFORE, 'date_default_timezone_set("Europe/London");')); diff --git a/src/Solution/InTempSolutionMapper.php b/src/Solution/InTempSolutionMapper.php index 648bb1ab..93b0d33b 100644 --- a/src/Solution/InTempSolutionMapper.php +++ b/src/Solution/InTempSolutionMapper.php @@ -44,7 +44,7 @@ public static function mapFile(string $file): string return $tempFile; } - $fileSystem->mkdir(System::tempDir()); + $fileSystem->mkdir(dirname($tempFile)); $fileSystem->copy($file, $tempFile); return $tempFile;