From a7d4eaa05749965d5982028bfe58686206b62f2e Mon Sep 17 00:00:00 2001 From: Samy Basset Date: Tue, 14 Jun 2022 13:00:17 +0200 Subject: [PATCH] Add proper return type to OptimizelyUserContext::jsonSerialize The following indirect deprecation notice is popping up when calling OptimizelyUserContext::jsonSerialize in php 8+: 1x: Method "JsonSerializable::jsonSerialize()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Optimizely\OptimizelyUserContext" now to avoid errors or add an explicit @return annotation to suppress this message. --- src/Optimizely/OptimizelyUserContext.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Optimizely/OptimizelyUserContext.php b/src/Optimizely/OptimizelyUserContext.php index 8769d6f7..4ae19f1c 100644 --- a/src/Optimizely/OptimizelyUserContext.php +++ b/src/Optimizely/OptimizelyUserContext.php @@ -147,6 +147,9 @@ public function getOptimizely() return $this->optimizelyClient; } + /** + * @return mixed + */ #[\ReturnTypeWillChange] public function jsonSerialize() { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy