Skip to content

Commit

Permalink
Merge pull request #270 from baopham/php-81
Browse files Browse the repository at this point in the history
feat: allow Laravel 10 and PHP 8.2 (basic)
  • Loading branch information
nelson6e65 authored Apr 18, 2023
2 parents d406957 + 91aca79 commit 4e35d27
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 8 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"name": "baopham/dynamodb",
"description": "Eloquent syntax for DynamoDB",
"keywords": ["laravel", "dynamodb", "aws"],
"keywords": [
"laravel",
"dynamodb",
"aws"
],
"require": {
"aws/aws-sdk-php": "^3.0.0",
"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",
"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"
"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",
"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"
},
"license": "MIT",
"authors": [
Expand All @@ -20,7 +24,7 @@
}
},
"require-dev": {
"orchestra/testbench": "~3.0 || ~5.0"
"orchestra/testbench": "~3.0 || ~5.0|^8.0"
},
"scripts": {
"test": "phpunit",
Expand Down
6 changes: 6 additions & 0 deletions src/RawDynamoDbQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function finalize()
* The return value will be casted to boolean if non-boolean was returned.
* @since 5.0.0
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->internal()[$offset]);
Expand All @@ -70,6 +71,7 @@ public function offsetExists($offset)
* @return mixed Can return all value types.
* @since 5.0.0
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->internal()[$offset];
Expand All @@ -87,6 +89,7 @@ public function offsetGet($offset)
* @return void
* @since 5.0.0
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->internal()[$offset] = $value;
Expand All @@ -101,6 +104,7 @@ public function offsetSet($offset, $value)
* @return void
* @since 5.0.0
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->internal()[$offset]);
Expand All @@ -113,6 +117,7 @@ public function offsetUnset($offset)
* <b>Traversable</b>
* @since 5.0.0
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayObject($this->internal());
Expand All @@ -127,6 +132,7 @@ public function getIterator()
* The return value is cast to an integer.
* @since 5.1.0
*/
#[\ReturnTypeWillChange]
public function count()
{
return count($this->internal());
Expand Down

0 comments on commit 4e35d27

Please sign in to comment.