Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/CacheAwareConnectionProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Illuminate\Database\Connection;
use Illuminate\Database\ConnectionInterface;
use LogicException;

use function array_shift;
use function base64_encode;
use function cache;
Expand Down Expand Up @@ -220,6 +221,7 @@ public function __get(string $name): mixed
* @param string $name
* @param mixed $value
* @return void
*
* @noinspection MagicMethodsValidityInspection
*/
public function __set(string $name, mixed $value): void
Expand Down
1 change: 1 addition & 0 deletions src/CacheQueryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ protected function eloquentMacro(): Closure
): EloquentBuilder {
/**
* @var \Illuminate\Database\Eloquent\Builder $this
*
* @phpstan-ignore-next-line
*/
$this->getQuery()->cache($ttl, $key, $store, $wait);
Expand Down
5 changes: 3 additions & 2 deletions src/Console/Commands/CacheQuery/Forget.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

namespace Laragear\CacheQuery\Console\Commands\CacheQuery;

use function array_map;
use function explode;
use Illuminate\Console\Command;
use Laragear\CacheQuery\CacheQuery;

use function array_map;
use function explode;

class Forget extends Command
{
/**
Expand Down
1 change: 1 addition & 0 deletions tests/CacheAwareConnectionProxyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Laragear\CacheQuery\CacheAwareConnectionProxy;
use LogicException;
use Mockery;

use function now;
use function today;

Expand Down