From 1143a16bbc537c7cc076e8e7022be1cb81b4087c Mon Sep 17 00:00:00 2001 From: David Date: Mon, 17 Mar 2025 18:31:50 +0100 Subject: [PATCH 1/2] fix: php 8.4 deprecation for implicitly nullable parameters (#219) --- 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; From 8fc6f4b28a713050349fb0372c1b51a0cf41313e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 17 Mar 2025 13:32:44 -0400 Subject: [PATCH 2/2] chore(main): release 6.5.1 (#220) :robot: I have created a release *beep* *boop* --- ## [6.5.1](https://github.com/launchdarkly/php-server-sdk/compare/6.5.0...6.5.1) (2025-03-17) ### Bug Fixes * php 8.4 deprecation for implicitly nullable parameters ([#219](https://github.com/launchdarkly/php-server-sdk/issues/219)) ([1143a16](https://github.com/launchdarkly/php-server-sdk/commit/1143a16bbc537c7cc076e8e7022be1cb81b4087c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .github/actions/build-docs/action.yml | 2 +- .release-please-manifest.json | 2 +- CHANGELOG.md | 7 +++++++ src/LaunchDarkly/LDClient.php | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/actions/build-docs/action.yml b/.github/actions/build-docs/action.yml index 0ea4c920..e413cf5f 100644 --- a/.github/actions/build-docs/action.yml +++ b/.github/actions/build-docs/action.yml @@ -17,4 +17,4 @@ runs: --ignore-tags psalm-return \ --visibility public \ --defaultpackagename "LaunchDarkly" \ - --title "LaunchDarkly PHP SDK 6.5.0" # x-release-please-version + --title "LaunchDarkly PHP SDK 6.5.1" # x-release-please-version diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b85605b8..e1cfad1c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "6.5.0" + ".": "6.5.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 7765cd04..854267ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to the LaunchDarkly PHP SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org). +## [6.5.1](https://github.com/launchdarkly/php-server-sdk/compare/6.5.0...6.5.1) (2025-03-17) + + +### Bug Fixes + +* php 8.4 deprecation for implicitly nullable parameters ([#219](https://github.com/launchdarkly/php-server-sdk/issues/219)) ([1143a16](https://github.com/launchdarkly/php-server-sdk/commit/1143a16bbc537c7cc076e8e7022be1cb81b4087c)) + ## [6.5.0](https://github.com/launchdarkly/php-server-sdk/compare/6.4.0...6.5.0) (2025-03-13) diff --git a/src/LaunchDarkly/LDClient.php b/src/LaunchDarkly/LDClient.php index 9bed69a5..e8271b99 100644 --- a/src/LaunchDarkly/LDClient.php +++ b/src/LaunchDarkly/LDClient.php @@ -39,7 +39,7 @@ class LDClient * The current SDK version. * @var string */ - const VERSION = '6.5.0'; // x-release-please-version + const VERSION = '6.5.1'; // x-release-please-version protected string $_sdkKey; protected string $_baseUri;