Skip to content

Commit dc286c8

Browse files
Fixes #18
1 parent b5cb958 commit dc286c8

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

src/CacheAwareConnectionProxy.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,26 @@
22

33
namespace Laragear\CacheQuery;
44

5-
use function array_shift;
6-
use function base64_encode;
7-
use function cache;
8-
use function config;
95
use DateInterval;
106
use DateTimeInterface;
117
use Illuminate\Cache\NoLock;
128
use Illuminate\Contracts\Cache\Lock;
139
use Illuminate\Contracts\Cache\LockProvider;
1410
use Illuminate\Contracts\Cache\Repository;
11+
use Illuminate\Database\Connection;
1512
use Illuminate\Database\ConnectionInterface;
13+
use LogicException;
14+
use function array_shift;
15+
use function base64_encode;
16+
use function cache;
17+
use function config;
1618
use function implode;
1719
use function is_int;
18-
use LogicException;
1920
use function max;
2021
use function md5;
2122
use function rtrim;
2223

23-
class CacheAwareConnectionProxy
24+
class CacheAwareConnectionProxy extends Connection
2425
{
2526
/**
2627
* Create a new Cache Aware Connection Proxy instance.
@@ -229,13 +230,13 @@ public function __set(string $name, mixed $value): void
229230
/**
230231
* Pass-through all method calls to the underlying connection.
231232
*
232-
* @param string $name
233+
* @param string $method
233234
* @param array $arguments
234235
* @return mixed
235236
*/
236-
public function __call(string $name, array $arguments)
237+
public function __call($method, $arguments)
237238
{
238-
return $this->connection->{$name}(...$arguments);
239+
return $this->connection->{$method}(...$arguments);
239240
}
240241

241242
/**

0 commit comments

Comments
 (0)