diff --git a/src/Illuminate/Foundation/Console/Presets/Preset.php b/src/Illuminate/Foundation/Console/Presets/Preset.php index efa081757285..99af6b6f4571 100644 --- a/src/Illuminate/Foundation/Console/Presets/Preset.php +++ b/src/Illuminate/Foundation/Console/Presets/Preset.php @@ -37,8 +37,7 @@ protected static function updatePackages($dev = true) $packages = json_decode(file_get_contents(base_path('package.json')), true); $packages[$configurationKey] = static::updatePackageArray( - array_key_exists($configurationKey, $packages) ? $packages[$configurationKey] : [], - $configurationKey + array_key_exists($configurationKey, $packages) ? $packages[$configurationKey] : [] ); ksort($packages[$configurationKey]);