Skip to content

Commit abde168

Browse files
committed
feat: string class name to class constant in extension
1 parent e5aaa36 commit abde168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DependencyInjection/SncRedisExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private function loadPredisClient(array $client, ContainerBuilder $container): v
142142
if (is_string($client['options']['connection_persistent'])) {
143143
$client['options']['persistent'] = true;
144144
// For predis, use the string value as conn_uid (requires predis >= 2.4.0)
145-
if (class_exists('Predis\Client')) {
145+
if (class_exists(Client::class)) {
146146
if (!version_compare(Client::VERSION, '2.4.0', '>=')) {
147147
throw new InvalidConfigurationException(
148148
'Using connection_persistent as string for Predis requires predis/predis version 2.4.0 or higher. ' .

0 commit comments

Comments
 (0)