Skip to content

Commit 4e35d27

Browse files
authored
Merge pull request #270 from baopham/php-81
feat: allow Laravel 10 and PHP 8.2 (basic)
2 parents d406957 + 91aca79 commit 4e35d27

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

composer.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
22
"name": "baopham/dynamodb",
33
"description": "Eloquent syntax for DynamoDB",
4-
"keywords": ["laravel", "dynamodb", "aws"],
4+
"keywords": [
5+
"laravel",
6+
"dynamodb",
7+
"aws"
8+
],
59
"require": {
610
"aws/aws-sdk-php": "^3.0.0",
7-
"illuminate/support": "5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 || ^8.0 || ^9.0",
8-
"illuminate/database": "5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 || ^8.0 || ^9.0"
11+
"illuminate/support": "5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 || ^8.0 || ^9.0|^10.0",
12+
"illuminate/database": "5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 || ^8.0 || ^9.0|^10.0"
913
},
1014
"license": "MIT",
1115
"authors": [
@@ -20,7 +24,7 @@
2024
}
2125
},
2226
"require-dev": {
23-
"orchestra/testbench": "~3.0 || ~5.0"
27+
"orchestra/testbench": "~3.0 || ~5.0|^8.0"
2428
},
2529
"scripts": {
2630
"test": "phpunit",

src/RawDynamoDbQuery.php

+6
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public function finalize()
5656
* The return value will be casted to boolean if non-boolean was returned.
5757
* @since 5.0.0
5858
*/
59+
#[\ReturnTypeWillChange]
5960
public function offsetExists($offset)
6061
{
6162
return isset($this->internal()[$offset]);
@@ -70,6 +71,7 @@ public function offsetExists($offset)
7071
* @return mixed Can return all value types.
7172
* @since 5.0.0
7273
*/
74+
#[\ReturnTypeWillChange]
7375
public function offsetGet($offset)
7476
{
7577
return $this->internal()[$offset];
@@ -87,6 +89,7 @@ public function offsetGet($offset)
8789
* @return void
8890
* @since 5.0.0
8991
*/
92+
#[\ReturnTypeWillChange]
9093
public function offsetSet($offset, $value)
9194
{
9295
$this->internal()[$offset] = $value;
@@ -101,6 +104,7 @@ public function offsetSet($offset, $value)
101104
* @return void
102105
* @since 5.0.0
103106
*/
107+
#[\ReturnTypeWillChange]
104108
public function offsetUnset($offset)
105109
{
106110
unset($this->internal()[$offset]);
@@ -113,6 +117,7 @@ public function offsetUnset($offset)
113117
* <b>Traversable</b>
114118
* @since 5.0.0
115119
*/
120+
#[\ReturnTypeWillChange]
116121
public function getIterator()
117122
{
118123
return new \ArrayObject($this->internal());
@@ -127,6 +132,7 @@ public function getIterator()
127132
* The return value is cast to an integer.
128133
* @since 5.1.0
129134
*/
135+
#[\ReturnTypeWillChange]
130136
public function count()
131137
{
132138
return count($this->internal());

0 commit comments

Comments
 (0)