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;