Skip to content

Commit 5580a9a

Browse files
authored
Suppress deprecation notice for php 8.1+ (#242)
Since php 8.1 internal functions are using proper return types. This results in deprecation notices for some methods. To supress this for php8.1 the ReturnTypeWillChange attribute is introduced. For more info check out https://stitcher.io/blog/new-in-php-81#interal-method-return-types-rfc
1 parent 8b1367a commit 5580a9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Optimizely/OptimizelyUserContext.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public function getOptimizely()
147147
return $this->optimizelyClient;
148148
}
149149

150+
#[\ReturnTypeWillChange]
150151
public function jsonSerialize()
151152
{
152153
return [

0 commit comments

Comments
 (0)