From 3c3543387e9ce7c1bb65d54ec3283abc1f2c10dd Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Tue, 14 Mar 2023 16:48:57 +0000 Subject: [PATCH 1/2] Bump version 3.1.1 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 56d20b5..e256a2b 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "flagsmith/flagsmith-php-client", "type": "library", - "version": "v3.1.0", + "version": "v3.1.1", "license": "BSD-3-Clause", "authors": [ { From 4de24c239cddfe27e8f20b8487e8de9bdb9153bb Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Tue, 14 Mar 2023 17:50:02 +0100 Subject: [PATCH 2/2] Solve php 8.2 deprecation (#34) --- src/Engine/Utils/Collections/CollectionTrait.php | 1 + .../Utils/Collections/MultivariateFeatureStateValueModelList.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Engine/Utils/Collections/CollectionTrait.php b/src/Engine/Utils/Collections/CollectionTrait.php index cc85949..70daf0d 100644 --- a/src/Engine/Utils/Collections/CollectionTrait.php +++ b/src/Engine/Utils/Collections/CollectionTrait.php @@ -23,6 +23,7 @@ protected function setValues($values) * Returns the object to JSON serialize. * @return array */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->getArrayCopy(); diff --git a/src/Engine/Utils/Collections/MultivariateFeatureStateValueModelList.php b/src/Engine/Utils/Collections/MultivariateFeatureStateValueModelList.php index 8edc773..f2926d4 100644 --- a/src/Engine/Utils/Collections/MultivariateFeatureStateValueModelList.php +++ b/src/Engine/Utils/Collections/MultivariateFeatureStateValueModelList.php @@ -14,6 +14,7 @@ class MultivariateFeatureStateValueModelList extends \ArrayObject implements \Js * Returns the object to JSON serialize. * @return array */ + #[\ReturnTypeWillChange] public function jsonSerialize() { $stateValues = $this->getArrayCopy();