@@ -120,7 +120,7 @@ public static function getInstance(string $driver, ?ConfigurationOptionInterface
120120 );
121121 } else {
122122 throw new PhpfastcacheDriverNotFoundException (sprintf (
123- 'The driver "%s" does not exists or does not implements %s ' ,
123+ 'The driver "%s" does not exist or does not implement %s ' ,
124124 $ driver ,
125125 ExtendedCacheItemPoolInterface::class
126126 ));
@@ -293,7 +293,7 @@ public static function addCustomDriver(string $driverName, string $className): v
293293
294294 if (!\class_exists ($ className )) {
295295 throw new PhpfastcacheInvalidArgumentException (
296- \sprintf ("Can't add '%s' because the class '%s' does not exists " , $ driverName , $ className )
296+ \sprintf ("Can't add '%s' because the class '%s' does not exist " , $ driverName , $ className )
297297 );
298298 }
299299
@@ -366,7 +366,7 @@ public static function removeCustomDriver(string $driverName): void
366366 }
367367
368368 if (!isset (self ::$ driverCustoms [$ driverName ])) {
369- throw new PhpfastcacheLogicException (\sprintf ("Driver '%s' does not exists " , $ driverName ));
369+ throw new PhpfastcacheLogicException (\sprintf ("Driver '%s' does not exist " , $ driverName ));
370370 }
371371
372372 unset(self ::$ driverCustoms [$ driverName ]);
@@ -390,7 +390,7 @@ public static function addCoreDriverOverride(string $driverName, string $classNa
390390
391391 if (!\class_exists ($ className )) {
392392 throw new PhpfastcacheInvalidArgumentException (
393- \sprintf ("Can't override '%s' because the class '%s' does not exists " , $ driverName , $ className )
393+ \sprintf ("Can't override '%s' because the class '%s' does not exist " , $ driverName , $ className )
394394 );
395395 }
396396
0 commit comments