Skip to content

Commit 1748e27

Browse files
authored
Merge pull request #16 from andreagroferreira/patch-1
Update composer.json
2 parents 0681da5 + ce6420e commit 1748e27

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

.github/workflows/php.yml

+1-1
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

+1-1
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

composer.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
"ci-test": "vendor/bin/phpunit --coverage-clover coverage.xml"
2121
},
2222
"require": {
23-
"php": "^7.3|^8.0",
24-
"illuminate/support": "^6.0|^7.0|^8.0",
25-
"illuminate/container": "^6.0|^7.0|^8.0",
26-
"illuminate/database": "^6.0|^7.0|^8.0",
27-
"illuminate/hashing": "^6.0|^7.0|^8.0",
23+
"php": "^7.3|^8.0|^8.1",
24+
"illuminate/support": "^6.0|^7.0|^8.0|^9.0",
25+
"illuminate/container": "^6.0|^7.0|^8.0|^9.0",
26+
"illuminate/database": "^6.0|^7.0|^8.0|^9.0",
27+
"illuminate/hashing": "^6.0|^7.0|^8.0|^9.0",
2828
"aws/aws-sdk-php": "^3.0"
2929
},
3030
"require-dev": {
31-
"illuminate/auth": "^6.0|^7.0|^8.0",
32-
"symfony/var-dumper": "^5.0",
33-
"vlucas/phpdotenv": "^4.1",
31+
"illuminate/auth": "^6.0|^7.0|^8.0|^9.0",
32+
"symfony/var-dumper": "^6.0",
33+
"vlucas/phpdotenv": "^5.0",
3434
"mockery/mockery": "^1.3",
3535
"phpunit/phpunit": "^8.0|^9.0"
3636
},

src/Kitar/Dynamodb/Helpers/NumberIterator.php

+5-3
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

+1-1
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)