Skip to content

Commit 4a94bbd

Browse files
authored
Merge pull request #623 from Geolim4/master
Fixed #620
2 parents 4e7427f + f4d65ae commit 4a94bbd

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

docs/migration/MigratingFromV6ToV7.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ This object will contain fluent setters allowing you to make use of chained sett
9292
Despite the fact that this is a bad practice, this object which implements ArrayAccess interface
9393
will allow you to treat the object as an array for primitive variable accesses:
9494
```php
95-
use \phpFastCache\Config\Config;
95+
use Phpfastcache\Config\Config;
9696

9797
$configArray = [];
9898
$config = new Config();
@@ -108,7 +108,7 @@ $cacheInstace = CacheManager::getInstance('Files', new Config([
108108
#### For non-global option you MUST use the specific Config object provided for each drivers
109109
```php
110110
// The recommanded way is to use an alias to not confuse yourself
111-
use \phpFastCache\Drivers\Files\Config as FilesConfig;
111+
use Phpfastcache\Drivers\Files\Config as FilesConfig;
112112

113113
$config = new FilesConfig();
114114
$config->setPath('/an/absolute/path');

lib/Phpfastcache/CacheManager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,11 @@ public static function getStaticAllDrivers(): array
370370
}
371371

372372
/**
373-
* @param bool $FQNAsKey Describe keys with Full Qualified Class Name
373+
* @param bool $FQCNAsKey Describe keys with Full Qualified Class Name
374374
* @return string[]
375375
* @throws PhpfastcacheUnsupportedOperationException
376376
*/
377-
public static function getDriverList($FQCNAsKey = false): array
377+
public static function getDriverList(bool $FQCNAsKey = false): array
378378
{
379379
static $driverList;
380380

@@ -584,7 +584,7 @@ protected static function validateConfig($config): ConfigurationOption
584584
*/
585585
protected static function validateDriverClass(string $driverClass): string
586586
{
587-
if (!is_a($driverClass, ExtendedCacheItemPoolInterface::class, true)) {
587+
if (!\is_a($driverClass, ExtendedCacheItemPoolInterface::class, true)) {
588588
throw new PhpfastcacheDriverException(\sprintf(
589589
'Class "%s" does not implement "%s"',
590590
$driverClass,

lib/Phpfastcache/Drivers/Apc/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function getStats(): DriverStatistic
136136

137137
return (new DriverStatistic())
138138
->setData(\implode(', ', \array_keys($this->itemInstances)))
139-
->setInfo(\sprintf("The APC cache is up since %s, and have %d item(s) in cache.\n For more information see RawData.", $date->format(DATE_RFC2822),
139+
->setInfo(\sprintf("The APC cache is up since %s, and have %d item(s) in cache.\n For more information see RawData.", $date->format(\DATE_RFC2822),
140140
$stats['num_entries']))
141141
->setRawData($stats)
142142
->setSize($stats['mem_size']);

lib/Phpfastcache/Drivers/Apcu/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function getStats(): DriverStatistic
124124

125125
return (new DriverStatistic())
126126
->setData(\implode(', ', \array_keys($this->itemInstances)))
127-
->setInfo(\sprintf("The APCU cache is up since %s, and have %d item(s) in cache.\n For more information see RawData.", $date->format(DATE_RFC2822),
127+
->setInfo(\sprintf("The APCU cache is up since %s, and have %d item(s) in cache.\n For more information see RawData.", $date->format(\DATE_RFC2822),
128128
$stats['num_entries']))
129129
->setRawData($stats)
130130
->setSize($stats['mem_size']);

lib/Phpfastcache/Drivers/Memcache/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function getStats(): DriverStatistic
205205

206206
return (new DriverStatistic())
207207
->setData(\implode(', ', \array_keys($this->itemInstances)))
208-
->setInfo(\sprintf("The memcache daemon v%s is up since %s.\n For more information see RawData.", $stats['version'], $date->format(DATE_RFC2822)))
208+
->setInfo(\sprintf("The memcache daemon v%s is up since %s.\n For more information see RawData.", $stats['version'], $date->format(\DATE_RFC2822)))
209209
->setRawData($stats)
210210
->setSize((int)$stats['bytes']);
211211
}

lib/Phpfastcache/Drivers/Memcached/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function getStats(): DriverStatistic
202202

203203
return (new DriverStatistic())
204204
->setData(\implode(', ', \array_keys($this->itemInstances)))
205-
->setInfo(\sprintf("The memcache daemon v%s is up since %s.\n For more information see RawData.", $stats['version'], $date->format(DATE_RFC2822)))
205+
->setInfo(\sprintf("The memcache daemon v%s is up since %s.\n For more information see RawData.", $stats['version'], $date->format(\DATE_RFC2822)))
206206
->setRawData($stats)
207207
->setSize((int)$stats['bytes']);
208208
}

lib/Phpfastcache/Drivers/Predis/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,6 @@ public function getStats(): DriverStatistic
194194
->setRawData($info)
195195
->setSize((int)$size)
196196
->setInfo(\sprintf("The Redis daemon v%s is up since %s.\n For more information see RawData. \n Driver size includes the memory allocation size.",
197-
$version, $date->format(DATE_RFC2822)));
197+
$version, $date->format(\DATE_RFC2822)));
198198
}
199199
}

lib/Phpfastcache/Drivers/Redis/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,6 @@ public function getStats(): DriverStatistic
179179
->setRawData($info)
180180
->setSize((int)$info['used_memory'])
181181
->setInfo(\sprintf("The Redis daemon v%s is up since %s.\n For more information see RawData. \n Driver size includes the memory allocation size.",
182-
$info['redis_version'], $date->format(DATE_RFC2822)));
182+
$info['redis_version'], $date->format(\DATE_RFC2822)));
183183
}
184184
}

lib/Phpfastcache/Drivers/Wincache/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function getStats(): DriverStatistic
123123
$date = (new \DateTime())->setTimestamp(\time() - $info['total_cache_uptime']);
124124

125125
return (new DriverStatistic())
126-
->setInfo(\sprintf("The Wincache daemon is up since %s.\n For more information see RawData.", $date->format(DATE_RFC2822)))
126+
->setInfo(\sprintf("The Wincache daemon is up since %s.\n For more information see RawData.", $date->format(\DATE_RFC2822)))
127127
->setSize($memInfo['memory_free'] - $memInfo['memory_total'])
128128
->setData(\implode(', ', \array_keys($this->itemInstances)))
129129
->setRawData($memInfo);

0 commit comments

Comments
 (0)