Skip to content

Commit f26fe67

Browse files
committed
Fix: Add ReturnTypeWillChange attribute
1 parent 04f5c20 commit f26fe67

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

src/Optimizely/Decide/OptimizelyDecision.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public function getReasons()
8181
return $this->reasons;
8282
}
8383

84+
#[\ReturnTypeWillChange]
8485
public function jsonSerialize()
8586
{
8687
return get_object_vars($this);

src/Optimizely/OptimizelyConfig/OptimizelyAttribute.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public function getKey()
5353
/**
5454
* @return string JSON representation of the object.
5555
*/
56+
#[\ReturnTypeWillChange]
5657
public function jsonSerialize()
5758
{
5859
return get_object_vars($this);

src/Optimizely/OptimizelyConfig/OptimizelyAudience.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public function getConditions()
6868
/**
6969
* @return string JSON representation of the object.
7070
*/
71+
#[\ReturnTypeWillChange]
7172
public function jsonSerialize()
7273
{
7374
return get_object_vars($this);

src/Optimizely/OptimizelyConfig/OptimizelyConfig.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ public function getEvents()
166166
/**
167167
* @return string JSON representation of the object.
168168
*/
169+
#[\ReturnTypeWillChange]
169170
public function jsonSerialize()
170171
{
171172
return get_object_vars($this);

src/Optimizely/OptimizelyConfig/OptimizelyEvent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public function getExperimentIds()
6868
/**
6969
* @return string JSON representation of the object.
7070
*/
71+
#[\ReturnTypeWillChange]
7172
public function jsonSerialize()
7273
{
7374
return get_object_vars($this);

src/Optimizely/OptimizelyConfig/OptimizelyExperiment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public function getVariationsMap()
8383
/**
8484
* @return string JSON representation of the object.
8585
*/
86+
#[\ReturnTypeWillChange]
8687
public function jsonSerialize()
8788
{
8889
return get_object_vars($this);

src/Optimizely/OptimizelyConfig/OptimizelyFeature.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public function getVariablesMap()
118118
/**
119119
* @return string JSON representation of the object.
120120
*/
121+
#[\ReturnTypeWillChange]
121122
public function jsonSerialize()
122123
{
123124
return get_object_vars($this);

src/Optimizely/OptimizelyConfig/OptimizelyVariable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ public function getValue()
8282
/**
8383
* @return string JSON representation of the object.
8484
*/
85+
#[\ReturnTypeWillChange]
8586
public function jsonSerialize()
8687
{
8788
return get_object_vars($this);

src/Optimizely/OptimizelyConfig/OptimizelyVariation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public function getVariablesMap()
8484
* @return string JSON representation of the object.
8585
* Unsets featureEnabled property for variations of ab experiments.
8686
*/
87+
#[\ReturnTypeWillChange]
8788
public function jsonSerialize()
8889
{
8990
$props = get_object_vars($this);

0 commit comments

Comments
 (0)