From bd3298b33f104569f50370b7ac1f9c1ddaa0985b Mon Sep 17 00:00:00 2001 From: Shift Date: Fri, 3 Feb 2023 00:27:35 +0000 Subject: [PATCH 1/2] Bump dependencies for Laravel 10 --- composer.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 229776f..8fb587b 100644 --- a/composer.json +++ b/composer.json @@ -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": [ @@ -20,7 +24,7 @@ } }, "require-dev": { - "orchestra/testbench": "~3.0 || ~5.0" + "orchestra/testbench": "~3.0 || ~5.0|^8.0" }, "scripts": { "test": "phpunit", From 91aca795f3c1b8679f43a9496869cb1e3140fae1 Mon Sep 17 00:00:00 2001 From: Nelson Martell Date: Tue, 18 Apr 2023 00:07:10 -0500 Subject: [PATCH 2/2] fix: remove PHP 8.1 warnings (temporally) --- src/RawDynamoDbQuery.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/RawDynamoDbQuery.php b/src/RawDynamoDbQuery.php index 3f7705f..619e96c 100644 --- a/src/RawDynamoDbQuery.php +++ b/src/RawDynamoDbQuery.php @@ -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]); @@ -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]; @@ -87,6 +89,7 @@ public function offsetGet($offset) * @return void * @since 5.0.0 */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { $this->internal()[$offset] = $value; @@ -101,6 +104,7 @@ public function offsetSet($offset, $value) * @return void * @since 5.0.0 */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->internal()[$offset]); @@ -113,6 +117,7 @@ public function offsetUnset($offset) * Traversable * @since 5.0.0 */ + #[\ReturnTypeWillChange] public function getIterator() { return new \ArrayObject($this->internal()); @@ -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());