@@ -177,7 +177,7 @@ public function getVariation(ProjectConfigInterface $projectConfig, Experiment $
177177 $ decideReasons [] = $ message ;
178178 } else {
179179 if (!in_array (OptimizelyDecideOption::IGNORE_USER_PROFILE_SERVICE , $ decideOptions )) {
180- $ this ->saveVariation ($ experiment , $ variation , $ userProfile, $ decideReasons );
180+ $ this ->saveVariation ($ experiment , $ variation , $ userProfile );
181181 }
182182 $ message = sprintf (
183183 'User "%s" is in variation %s of experiment %s. ' ,
@@ -599,7 +599,7 @@ private function getStoredVariation(ProjectConfigInterface $projectConfig, Exper
599599 * @param $variation Variation Variation the user is bucketed into.
600600 * @param $userProfile UserProfile User profile object to which we are persisting the variation assignment.
601601 */
602- private function saveVariation (Experiment $ experiment , Variation $ variation , UserProfile $ userProfile, & $ decideReasons = [] )
602+ private function saveVariation (Experiment $ experiment , Variation $ variation , UserProfile $ userProfile )
603603 {
604604 if (is_null ($ this ->_userProfileService )) {
605605 return ;
@@ -627,7 +627,6 @@ private function saveVariation(Experiment $experiment, Variation $variation, Use
627627 );
628628
629629 $ this ->_logger ->log (Logger::INFO , $ message );
630- $ decideReasons [] = $ message ;
631630 } catch (Exception $ e ) {
632631 $ message = sprintf (
633632 'Failed to save variation "%s" of experiment "%s" for user "%s". ' ,
@@ -637,7 +636,6 @@ private function saveVariation(Experiment $experiment, Variation $variation, Use
637636 );
638637
639638 $ this ->_logger ->log (Logger::WARNING , $ message );
640- $ decideReasons [] = $ message ;
641639 }
642640 }
643641}
0 commit comments