From 4c718effef0d4c874516b2c4ee105f32c9670a2d Mon Sep 17 00:00:00 2001 From: Daniel Bannert Date: Sun, 30 Sep 2018 22:31:49 +0200 Subject: [PATCH] fixed env value, should always be a string --- src/Automatic/Configurator/EnvConfigurator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Automatic/Configurator/EnvConfigurator.php b/src/Automatic/Configurator/EnvConfigurator.php index 32526080..14394131 100644 --- a/src/Automatic/Configurator/EnvConfigurator.php +++ b/src/Automatic/Configurator/EnvConfigurator.php @@ -38,7 +38,7 @@ public function configure(PackageContract $package): void continue; } - $value = self::expandTargetDir($this->options, $value); + $value = self::expandTargetDir($this->options, (string) $value); if (\strpbrk($value, " \t\n&!\"") !== false) { $value = '"' . \str_replace(['\\', '"', "\t", "\n"], ['\\\\', '\\"', '\t', '\n'], $value) . '"';