Skip to content
Closed

5.x #43

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
11 changes: 6 additions & 5 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,18 @@ jobs:
strategy:
matrix:
php-version:
- 8.1
- 8.2
- 8.3
- 8.4
laravel-constraint:
- 10.*
- 11.*
- 12.*
dependencies:
- lowest
- highest
exclude:
- laravel-constraint: 11.*
php-version: 8.1
- laravel-constraint: 12.*
php-version: 8.2
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
Expand All @@ -84,7 +83,9 @@ jobs:
run: composer run-script test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

static_analysis:
name: 3️⃣ Static Analysis
Expand Down
30 changes: 10 additions & 20 deletions .stubs/stubs
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,41 @@ namespace Illuminate\Database\Query {

use DateInterval;
use DateTimeInterface;
use Closure;
use Laragear\CacheQuery\Cache;

class Builder
{
/**
* Caches the underlying query results.
*
* @param \DateTimeInterface|\DateInterval|int|bool|array{ 0: \DateTimeInterface|\DateInterval|int, 1: \DateTimeInterface|\DateInterval|int }|null $ttl
* @param string $key
* @param string|null $store
* @param int $wait
* @param \DateTimeInterface|\DateInterval|\Laragear\CacheQuery\Cache|(\Closure(\Laragear\CacheQuery\Cache):void)|int|array{ 0: \DateTimeInterface|\DateInterval|int, 1: \DateTimeInterface|\DateInterval|int }|string|null $ttl
* @return $this
*/
public function cache(
DateTimeInterface|DateInterval|int|bool|array|null $ttl = null,
string $key = '',
string $store = null,
int $wait = 0,
): static {
public function cache(DateTimeInterface|DateInterval|Closure|Cache|int|array|string|null $ttl = 60): static
{
//
}
}
}

namespace Illuminate\Database\Eloquent {

use Closure;
use DateInterval;
use DateTimeInterface;
use Laragear\CacheQuery\Cache;

class Builder
{
/**
* Caches the underlying query results.
*
* @param \DateTimeInterface|\DateInterval|int|bool|array{ 0: \DateTimeInterface|\DateInterval|int, 1: \DateTimeInterface|\DateInterval|int }|null $ttl
* @param string $key
* @param string|null $store
* @param int $wait
* @param \DateTimeInterface|\DateInterval|\Laragear\CacheQuery\Cache|(\Closure(\Laragear\CacheQuery\Cache):void)|int|array{ 0: \DateTimeInterface|\DateInterval|int, 1: \DateTimeInterface|\DateInterval|int }|string|null $ttl
* @return $this
*/
public function cache(
DateTimeInterface|DateInterval|int|bool|array|null $ttl = null,
string $key = '',
string $store = null,
int $wait = 0,
): static {
public function cache(DateTimeInterface|DateInterval|Closure|Cache|int|array|string|null $ttl = 60): static
{
//
}
}
Expand Down
Loading