From 84d5fc6e9d5a7fd5f1ac574bc995c3afeafa7b96 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 15 Mar 2025 19:19:19 +0100 Subject: [PATCH] fix: php 8.4 deprecation for implicitly nullable parameters --- src/LaunchDarkly/EvaluationReason.php | 2 +- src/LaunchDarkly/Impl/Evaluation/EvalResult.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LaunchDarkly/EvaluationReason.php b/src/LaunchDarkly/EvaluationReason.php index b0596a32..ac267653 100644 --- a/src/LaunchDarkly/EvaluationReason.php +++ b/src/LaunchDarkly/EvaluationReason.php @@ -166,7 +166,7 @@ private function __construct( ?string $ruleId = null, ?string $prerequisiteKey = null, bool $inExperiment = false, - BigSegmentsEvaluationStatus $bigSegmentsEvaluationStatus = null + ?BigSegmentsEvaluationStatus $bigSegmentsEvaluationStatus = null ) { $this->_kind = $kind; $this->_errorKind = $errorKind; diff --git a/src/LaunchDarkly/Impl/Evaluation/EvalResult.php b/src/LaunchDarkly/Impl/Evaluation/EvalResult.php index 71ab1ebe..53432ee7 100644 --- a/src/LaunchDarkly/Impl/Evaluation/EvalResult.php +++ b/src/LaunchDarkly/Impl/Evaluation/EvalResult.php @@ -22,7 +22,7 @@ class EvalResult * @param EvaluationDetail $detail * @param bool $forceReasonTracking */ - public function __construct(EvaluationDetail $detail, bool $forceReasonTracking = false, EvaluatorState $state = null) + public function __construct(EvaluationDetail $detail, bool $forceReasonTracking = false, ?EvaluatorState $state = null) { $this->_detail = $detail; $this->_state = $state;