Skip to content

Commit 482dd2e

Browse files
committed
Support PHP 8.1
1 parent 852c8f1 commit 482dd2e

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
php-version: ['7.3', '7.4', '8.0']
12+
php-version: ['7.3', '7.4', '8.0', '8.1']
1313

1414
steps:
1515
- name: Checkout

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Install the package via Composer:
7474
$ composer require kitar/laravel-dynamodb
7575
```
7676

77-
### Laravel (6.x, 7.x, 8.x)
77+
### Laravel (6.x, 7.x, 8.x, 9.x)
7878

7979
Add dynamodb configs to config/database.php:
8080

src/Kitar/Dynamodb/Helpers/NumberIterator.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,29 @@ public function __construct($start = 1, $prefix = '')
1414
$this->prefix = $prefix;
1515
}
1616

17-
public function rewind()
17+
public function rewind(): void
1818
{
1919
$this->current = $this->start;
2020
}
2121

22+
#[\ReturnTypeWillChange]
2223
public function current()
2324
{
2425
return "{$this->prefix}{$this->current}";
2526
}
2627

28+
#[\ReturnTypeWillChange]
2729
public function key()
2830
{
2931
return $this->current;
3032
}
3133

32-
public function next()
34+
public function next(): void
3335
{
3436
$this->current++;
3537
}
3638

37-
public function valid()
39+
public function valid(): bool
3840
{
3941
return true;
4042
}

src/Kitar/Dynamodb/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ public function whereIn($column, $values, $boolean = 'and', $not = false)
493493
/**
494494
* @inheritdoc
495495
*/
496-
public function whereBetween($column, array $values, $boolean = 'and', $not = false)
496+
public function whereBetween($column, iterable $values, $boolean = 'and', $not = false)
497497
{
498498
$column = $this->expression_attributes->addName($column);
499499

0 commit comments

Comments
 (0)