Skip to content
Permalink
Browse files

formatting

  • Loading branch information
taylorotwell committed Nov 25, 2019
1 parent b28acda commit 184a0f45bc9959ebadf36a7dd6966c2bfcb96191
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/Illuminate/Redis/Connectors/PhpRedisConnector.php
@@ -69,11 +69,11 @@ protected function createClient(array $config)
{
return tap(new Redis, function ($client) use ($config) {
if ($client instanceof RedisFacade) {
$message = 'Please remove or rename the Redis facade alias in your "app" configuration file in order to avoid collision with the PHP Redis extension.';
if (! extension_loaded('redis')) {
$message = 'Please make sure the PHP Redis extension is installed and enabled.';
}
throw new LogicException($message);
throw new LogicException(
extension_loaded('redis')
? 'Please remove or rename the Redis facade alias in your "app" configuration file in order to avoid collision with the PHP Redis extension.'
: 'Please make sure the PHP Redis extension is installed and enabled.'
);
}
$this->establishConnection($client, $config);

0 comments on commit 184a0f4

Please sign in to comment.
You can’t perform that action at this time.