Skip to content

Commit a2e587d

Browse files
committed
Updated config class
1 parent a8631d1 commit a2e587d

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

lib/Phpfastcache/Config/ConfigurationOption.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ public function __construct(array $parameters = [])
5858
} else {
5959
throw new PhpfastcacheInvalidConfigurationException(
6060
sprintf(
61-
'Invalid option for the config %s: %s',
61+
'Unknown configuration option name "%s" for the config class "%s". Allowed configurations options are "%s"',
62+
$configKey,
6263
$this::class,
63-
$configKey
64+
\implode('", "', array_keys($this->toArray())),
6465
)
6566
);
6667
}

lib/Phpfastcache/Drivers/Arangodb/Config.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ class Config extends ConfigurationOption
2828
protected string $collection;
2929

3030
/**
31-
* HTTP ENDPOINT: ssl://localhost:8529
32-
* SSL ENDPOINT: ssl://localhost:8529
31+
* HTTP ENDPOINT: ssl://127.0.0.1:8529
32+
* SSL ENDPOINT: ssl://127.0.0.1:8529
3333
* UNIX ENDPOINT: unix:///tmp/arangodb.sock
34-
* Failover ENDPOINTS: ['tcp://localhost:8529', 'tcp://another-host:8529']
34+
* Failover ENDPOINTS: ['tcp://127.0.0.1:8529', 'tcp://127.0.0.1:8529']
3535
*/
3636
protected string|array $endpoint = 'tcp://127.0.0.1:8529';
3737

lib/Phpfastcache/Drivers/Devrandom/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function driverCheck(): bool
4444
public function getStats(): DriverStatistic
4545
{
4646
$stat = new DriverStatistic();
47-
$stat->setInfo('[Devfalse] A void info string')
47+
$stat->setInfo('[Devrandom] A void info string')
4848
->setSize(0)
4949
->setData(implode(', ', array_keys($this->itemInstances)))
5050
->setRawData(false);

lib/Phpfastcache/Drivers/Files/Driver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class Driver implements ExtendedCacheItemPoolInterface, AggregatablePoolInterfac
4040
/**
4141
* @return bool
4242
* @throws PhpfastcacheIOException
43+
* @throws PhpfastcacheInvalidArgumentException
4344
*/
4445
public function driverCheck(): bool
4546
{
@@ -119,6 +120,7 @@ protected function driverDelete(ExtendedCacheItemInterface $item): bool
119120
/**
120121
* @return bool
121122
* @throws \Phpfastcache\Exceptions\PhpfastcacheIOException
123+
* @throws PhpfastcacheInvalidArgumentException
122124
*/
123125
protected function driverClear(): bool
124126
{

0 commit comments

Comments
 (0)