Skip to content

Commit 6a1c1c1

Browse files
committed
Needle is not haystack.
1 parent 5a95a3a commit 6a1c1c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Console/Commands/UpdateEnvironment.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function handle()
136136
'apc' => 'APC',
137137
'array' => 'PHP Array',
138138
];
139-
$default = (in_array($options, config('cache.default', 'memcached'))) ? config('cache.default', 'memcached') : 'memcached';
139+
$default = (in_array(config('cache.default', 'memcached'), $options)) ? config('cache.default', 'memcached') : 'memcached';
140140

141141
$this->line('If you chose redis as your cache driver backend, you *must* have a redis server configured already.');
142142
$variables['CACHE_DRIVER'] = $this->choice('Which cache driver backend would you like to use?', $options, $default);
@@ -153,7 +153,7 @@ public function handle()
153153
'apc' => 'APC',
154154
'array' => 'PHP Array',
155155
];
156-
$default = (in_array($options, config('session.driver', 'database'))) ? config('cache.default', 'database') : 'database';
156+
$default = (in_array(config('session.driver', 'database'), $options)) ? config('cache.default', 'database') : 'database';
157157

158158
$this->line('If you chose redis as your cache driver backend, you *must* have a redis server configured already.');
159159
$variables['SESSION_DRIVER'] = $this->choice('Which session driver backend would you like to use?', $options, $default);
@@ -169,7 +169,7 @@ public function handle()
169169
'sync' => 'Sync',
170170
'null' => 'None',
171171
];
172-
$default = (in_array($options, config('queue.driver', 'database'))) ? config('queue.driver', 'database') : 'database';
172+
$default = (in_array(config('queue.driver', 'database'), $options)) ? config('queue.driver', 'database') : 'database';
173173

174174
$this->line('If you chose redis as your cache driver backend, you *must* have a redis server configured already.');
175175
$variables['QUEUE_DRIVER'] = $this->choice('Which cache driver backend would you like to use?', $options, $default);

0 commit comments

Comments
 (0)