Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/3.x' into 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter committed May 21, 2023
2 parents fddb74a + 3764029 commit a2e1203
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
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 @@ -95,6 +95,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

0 comments on commit a2e1203

Please sign in to comment.