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: 1 addition & 1 deletion .github/workflows/composer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Build Docker Images
run: composer ${{ matrix.composer-test }}-build ${{ matrix.php }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: ${{ github.head_ref }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
2 changes: 0 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ parameters:
# excludePaths:
# - */Where*.php
# - */*Builder.php

checkMissingIterableValueType: false
4 changes: 2 additions & 2 deletions src/Traits/Cacheable.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ abstract public function execute();
* @param int|null $ttl
* @return mixed
*/
public function fetch(int $ttl = null)
public function fetch(?int $ttl = null)
{
return Cache::remember($this->cacheKey(), $this->getTTL($ttl), function () {
return $this->execute();
Expand All @@ -51,7 +51,7 @@ public function fetch(int $ttl = null)
* @param int|null $ttl
* @return int
*/
private function getTTL(int $ttl = null): int
private function getTTL(?int $ttl = null): int
{
return intval($ttl ?? $this->ttl ?? config('redis-helpers.ttl'));
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Assets/DateHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DateHash
* @param string|null $datetime
* @param string $format
*/
public function __construct(string $datetime = null, string $format = 'Y-m-d')
public function __construct(?string $datetime = null, string $format = 'Y-m-d')
{
$this->format = $format;
$this->date = date($this->format, strtotime($datetime ?? now()));
Expand Down
Loading