From 221880bad3ade374fe1fbf1d965f1bda9d724382 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 13 Nov 2026 14:53:55 +0000 Subject: [PATCH 1/3] chore: update vimeo/psalm requirement from ^6.13.1 to ^7.0.4 Updates the requirements on [vimeo/psalm](https://github.com/vimeo/psalm) to permit the latest version. - [Release notes](https://github.com/vimeo/psalm/releases) - [Commits](https://github.com/vimeo/psalm/compare/6.13.1...7.0.4) --- updated-dependencies: - dependency-name: vimeo/psalm dependency-version: 7.0.4 dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4ef61bec..74751f28 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "kevinrob/guzzle-cache-middleware": "^8.0", "phpunit/php-code-coverage": "^9", "phpunit/phpunit": "^9", - "vimeo/psalm": "^6.13.1" + "vimeo/psalm": "^7.0.4" }, "suggest": { "guzzlehttp/guzzle": "(^6.3 | ^7 | ^8) Required when using GuzzleEventPublisher or the default FeatureRequester", From 539917a1478339c49f95f87eb0704ab2c0c1cb3d Mon Sep 17 00:00:00 2001 From: Matthew Keeler Date: Fri, 13 Nov 2026 13:36:05 -0500 Subject: [PATCH 2/3] chore: Disable psalm unused-code detection for psalm 7 Psalm 7 flags most of the public API as unused because the analysis only covers src. Turn the check off and prune the stale baseline entries. --- psalm-baseline.xml | 210 +-------------------------------------------- psalm.xml | 1 + 2 files changed, 2 insertions(+), 209 deletions(-) diff --git a/psalm-baseline.xml b/psalm-baseline.xml index f91a02f3..852a7da4 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,5 @@ - + @@ -12,13 +12,6 @@ - - - - - - - _errorKind]]> _prerequisiteKey]]> @@ -33,47 +26,12 @@ - - - - - - getDebugEventsUntilDate()]]> getDebugEventsUntilDate()]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -93,9 +51,6 @@ - - - @@ -162,21 +117,10 @@ getDebugEventsUntilDate()]]> - - - - - - - - - - - @@ -206,9 +150,6 @@ - - - @@ -222,21 +163,12 @@ - - - - - - - - - @@ -258,12 +190,6 @@ - - - - - - @@ -298,12 +224,6 @@ - - - - - - @@ -330,17 +250,11 @@ - - - - - - @@ -376,17 +290,11 @@ - - - - - - @@ -402,17 +310,11 @@ - - - - - - @@ -423,14 +325,6 @@ - - - - - - - - @@ -439,67 +333,21 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - _send_events]]> - - - - - - - @@ -514,13 +362,6 @@ - - - - - - - _error]]> @@ -535,15 +376,6 @@ - - - - - - - - - _kind]]> @@ -562,24 +394,11 @@ - - - - - - - - - - - - - @@ -590,34 +409,11 @@ - - - - - - - - - - - - - - - - - - - - - - - @@ -636,10 +432,6 @@ - - - - diff --git a/psalm.xml b/psalm.xml index a7d49831..b277ec40 100644 --- a/psalm.xml +++ b/psalm.xml @@ -6,6 +6,7 @@ xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" errorBaseline="psalm-baseline.xml" + findUnusedCode="false" > From 178b76404fe46cd1b665505c09d2030732235536 Mon Sep 17 00:00:00 2001 From: Matthew Keeler Date: Fri, 13 Nov 2026 13:39:16 -0500 Subject: [PATCH 3/3] chore: Mark public API for psalm 7 dead-code analysis Psalm 7 treats code that only unused code references as unused. Nothing in src calls the public API, so it flagged nearly the whole SDK. Tag the public classes and FeatureRequesterBase with @psalm-api, restore unused code detection, and regenerate the baseline. --- psalm-baseline.xml | 158 ++++++------------ psalm.xml | 1 - .../BigSegmentsEvaluationStatus.php | 2 + src/LaunchDarkly/EvaluationDetail.php | 2 + src/LaunchDarkly/EvaluationReason.php | 2 + src/LaunchDarkly/FeatureFlagsState.php | 2 + .../Hooks/EvaluationSeriesContext.php | 2 + src/LaunchDarkly/Hooks/Hook.php | 2 + src/LaunchDarkly/Hooks/Metadata.php | 2 + src/LaunchDarkly/Hooks/TrackSeriesContext.php | 2 + .../Integrations/FeatureRequesterBase.php | 1 + src/LaunchDarkly/Integrations/Curl.php | 2 + src/LaunchDarkly/Integrations/Files.php | 2 + src/LaunchDarkly/Integrations/Guzzle.php | 2 + src/LaunchDarkly/Integrations/TestData.php | 3 + .../Integrations/TestData/FlagBuilder.php | 2 + .../Integrations/TestData/FlagRuleBuilder.php | 2 + .../TestData/MigrationSettingsBuilder.php | 3 + src/LaunchDarkly/LDClient.php | 2 + src/LaunchDarkly/LDContext.php | 2 + src/LaunchDarkly/LDContextBuilder.php | 2 + src/LaunchDarkly/LDContextMultiBuilder.php | 2 + .../Migrations/ExecutionOrder.php | 2 + .../Migrations/MigrationConfig.php | 2 + src/LaunchDarkly/Migrations/Migrator.php | 2 + .../Migrations/MigratorBuilder.php | 2 + src/LaunchDarkly/Migrations/OpTracker.php | 2 + src/LaunchDarkly/Migrations/Operation.php | 2 + .../Migrations/OperationResult.php | 2 + src/LaunchDarkly/Migrations/Origin.php | 2 + src/LaunchDarkly/Migrations/Stage.php | 2 + src/LaunchDarkly/Migrations/WriteResult.php | 2 + .../Subsystems/BigSegmentStatusListener.php | 2 + .../Subsystems/BigSegmentStatusProvider.php | 2 + .../Subsystems/BigSegmentsStore.php | 2 + .../Subsystems/EventPublisher.php | 2 + .../Subsystems/FeatureRequester.php | 2 + src/LaunchDarkly/Types/ApplicationInfo.php | 2 + src/LaunchDarkly/Types/AttributeReference.php | 2 + src/LaunchDarkly/Types/BigSegmentsConfig.php | 2 + .../Types/BigSegmentsStoreMetadata.php | 2 + .../Types/BigSegmentsStoreStatus.php | 2 + src/LaunchDarkly/Types/Result.php | 2 + 43 files changed, 133 insertions(+), 109 deletions(-) diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 852a7da4..6f61d3c7 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,14 +1,6 @@ - - - - - - + - - - @@ -20,9 +12,6 @@ - - - @@ -32,6 +21,14 @@ + + + + + + + + @@ -51,6 +48,9 @@ + + + @@ -117,6 +117,14 @@ getDebugEventsUntilDate()]]> + + + + + + + + @@ -152,9 +160,6 @@ - - - @@ -163,6 +168,11 @@ + + + + + @@ -190,6 +200,9 @@ + + + @@ -224,6 +237,9 @@ + + + @@ -255,6 +271,13 @@ + + + + + + + @@ -290,36 +313,24 @@ + + + + + + - - - - - - - - - - - - - - - - - - @@ -327,32 +338,19 @@ - - - - - - - - - - - - - + + + - - - + + + - - - @@ -373,69 +371,13 @@ - - - _kind]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - _singleComponent]]> - - - - - - - - - - - - - - - diff --git a/psalm.xml b/psalm.xml index b277ec40..a7d49831 100644 --- a/psalm.xml +++ b/psalm.xml @@ -6,7 +6,6 @@ xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" errorBaseline="psalm-baseline.xml" - findUnusedCode="false" > diff --git a/src/LaunchDarkly/BigSegmentsEvaluationStatus.php b/src/LaunchDarkly/BigSegmentsEvaluationStatus.php index 44275e13..5801b201 100644 --- a/src/LaunchDarkly/BigSegmentsEvaluationStatus.php +++ b/src/LaunchDarkly/BigSegmentsEvaluationStatus.php @@ -7,6 +7,8 @@ /** * A status enum which represents the result of a Big Segment query involved in * a flag evaluation. + * + * @psalm-api */ enum BigSegmentsEvaluationStatus: string { diff --git a/src/LaunchDarkly/EvaluationDetail.php b/src/LaunchDarkly/EvaluationDetail.php index c8223ad8..b074d8ee 100644 --- a/src/LaunchDarkly/EvaluationDetail.php +++ b/src/LaunchDarkly/EvaluationDetail.php @@ -8,6 +8,8 @@ * An object that combines the result of a flag evaluation with an explanation of how it was calculated. * * This is returned by {@see \LaunchDarkly\LDClient::variationDetail()}. + * + * @psalm-api */ class EvaluationDetail { diff --git a/src/LaunchDarkly/EvaluationReason.php b/src/LaunchDarkly/EvaluationReason.php index 0a1623b5..1942ade2 100644 --- a/src/LaunchDarkly/EvaluationReason.php +++ b/src/LaunchDarkly/EvaluationReason.php @@ -8,6 +8,8 @@ * Describes the reason that a flag evaluation produced a particular value. * * This is part of the {@see \LaunchDarkly\EvaluationDetail} object returned by {@see \LaunchDarkly\LDClient::variationDetail()}. + * + * @psalm-api */ class EvaluationReason implements \JsonSerializable { diff --git a/src/LaunchDarkly/FeatureFlagsState.php b/src/LaunchDarkly/FeatureFlagsState.php index 63d62c17..e9eff450 100644 --- a/src/LaunchDarkly/FeatureFlagsState.php +++ b/src/LaunchDarkly/FeatureFlagsState.php @@ -14,6 +14,8 @@ * Serializing this object to JSON using json_encode(), or the jsonSerialize() method, will produce the * appropriate data structure for bootstrapping the LaunchDarkly JavaScript client. See the SDK * reference guide on ["Bootstrapping"](https://docs.launchdarkly.com/sdk/features/bootstrapping#javascript). + * + * @psalm-api */ class FeatureFlagsState implements \JsonSerializable { diff --git a/src/LaunchDarkly/Hooks/EvaluationSeriesContext.php b/src/LaunchDarkly/Hooks/EvaluationSeriesContext.php index 70155413..4095de4d 100644 --- a/src/LaunchDarkly/Hooks/EvaluationSeriesContext.php +++ b/src/LaunchDarkly/Hooks/EvaluationSeriesContext.php @@ -15,6 +15,8 @@ * flag data from LaunchDarkly at least once, so the first variation call's * `beforeEvaluation` typically sees `null` while its `afterEvaluation` sees the * captured value. See {@see \LaunchDarkly\Hooks\EvaluationSeriesContext::$environmentId}. + * + * @psalm-api */ final class EvaluationSeriesContext { diff --git a/src/LaunchDarkly/Hooks/Hook.php b/src/LaunchDarkly/Hooks/Hook.php index d71d781e..89d96e2d 100644 --- a/src/LaunchDarkly/Hooks/Hook.php +++ b/src/LaunchDarkly/Hooks/Hook.php @@ -14,6 +14,8 @@ * without breaking existing implementations. * * Only `getMetadata` is abstract; subclasses override just the stages they need. + * + * @psalm-api */ abstract class Hook { diff --git a/src/LaunchDarkly/Hooks/Metadata.php b/src/LaunchDarkly/Hooks/Metadata.php index 8359ac2f..b391646d 100644 --- a/src/LaunchDarkly/Hooks/Metadata.php +++ b/src/LaunchDarkly/Hooks/Metadata.php @@ -6,6 +6,8 @@ /** * Metadata about a hook implementation. + * + * @psalm-api */ final class Metadata { diff --git a/src/LaunchDarkly/Hooks/TrackSeriesContext.php b/src/LaunchDarkly/Hooks/TrackSeriesContext.php index c0711139..663a37ad 100644 --- a/src/LaunchDarkly/Hooks/TrackSeriesContext.php +++ b/src/LaunchDarkly/Hooks/TrackSeriesContext.php @@ -8,6 +8,8 @@ /** * Contextual information provided to the afterTrack stage of the track series. + * + * @psalm-api */ final class TrackSeriesContext { diff --git a/src/LaunchDarkly/Impl/Integrations/FeatureRequesterBase.php b/src/LaunchDarkly/Impl/Integrations/FeatureRequesterBase.php index dfc5c674..e7fcb44e 100644 --- a/src/LaunchDarkly/Impl/Integrations/FeatureRequesterBase.php +++ b/src/LaunchDarkly/Impl/Integrations/FeatureRequesterBase.php @@ -14,6 +14,7 @@ /** * @ignore * @internal + * @psalm-api */ class FeatureRequesterBase implements FeatureRequester { diff --git a/src/LaunchDarkly/Integrations/Curl.php b/src/LaunchDarkly/Integrations/Curl.php index d2784715..2eb6b0bd 100644 --- a/src/LaunchDarkly/Integrations/Curl.php +++ b/src/LaunchDarkly/Integrations/Curl.php @@ -7,6 +7,8 @@ /** * Integration with the curl HTTP client. * @since 3.5.0 + * + * @psalm-api */ class Curl { diff --git a/src/LaunchDarkly/Integrations/Files.php b/src/LaunchDarkly/Integrations/Files.php index 7a6ac4cb..4592c886 100644 --- a/src/LaunchDarkly/Integrations/Files.php +++ b/src/LaunchDarkly/Integrations/Files.php @@ -7,6 +7,8 @@ /** * Integration with filesystem data. * @since 3.5.0 + * + * @psalm-api */ class Files { diff --git a/src/LaunchDarkly/Integrations/Guzzle.php b/src/LaunchDarkly/Integrations/Guzzle.php index 0f8f229c..7e011d61 100644 --- a/src/LaunchDarkly/Integrations/Guzzle.php +++ b/src/LaunchDarkly/Integrations/Guzzle.php @@ -7,6 +7,8 @@ /** * Integration with the Guzzle HTTP client. * @since 3.5.0 + * + * @psalm-api */ class Guzzle { diff --git a/src/LaunchDarkly/Integrations/TestData.php b/src/LaunchDarkly/Integrations/TestData.php index b8229754..5ea1ee05 100644 --- a/src/LaunchDarkly/Integrations/TestData.php +++ b/src/LaunchDarkly/Integrations/TestData.php @@ -9,6 +9,9 @@ use LaunchDarkly\Integrations\TestData\FlagBuilder; use LaunchDarkly\Subsystems\FeatureRequester; +/** + * @psalm-api + */ class TestData implements FeatureRequester { protected array $_flagBuilders; diff --git a/src/LaunchDarkly/Integrations/TestData/FlagBuilder.php b/src/LaunchDarkly/Integrations/TestData/FlagBuilder.php index 63ada503..86a95bca 100644 --- a/src/LaunchDarkly/Integrations/TestData/FlagBuilder.php +++ b/src/LaunchDarkly/Integrations/TestData/FlagBuilder.php @@ -15,6 +15,8 @@ * * @see \LaunchDarkly\Integrations\TestData::flag() * @see \LaunchDarkly\Integrations\TestData::update() + * + * @psalm-api */ class FlagBuilder { diff --git a/src/LaunchDarkly/Integrations/TestData/FlagRuleBuilder.php b/src/LaunchDarkly/Integrations/TestData/FlagRuleBuilder.php index 32a48624..f19c743d 100644 --- a/src/LaunchDarkly/Integrations/TestData/FlagRuleBuilder.php +++ b/src/LaunchDarkly/Integrations/TestData/FlagRuleBuilder.php @@ -21,6 +21,8 @@ * `thenReturn(int)` to finish defining the rule. * * @see \LaunchDarkly\Integrations\TestData\FlagBuilder + * + * @psalm-api */ class FlagRuleBuilder { diff --git a/src/LaunchDarkly/Integrations/TestData/MigrationSettingsBuilder.php b/src/LaunchDarkly/Integrations/TestData/MigrationSettingsBuilder.php index f8a7329c..fa5c76f7 100644 --- a/src/LaunchDarkly/Integrations/TestData/MigrationSettingsBuilder.php +++ b/src/LaunchDarkly/Integrations/TestData/MigrationSettingsBuilder.php @@ -4,6 +4,9 @@ namespace LaunchDarkly\Integrations\TestData; +/** + * @psalm-api + */ class MigrationSettingsBuilder { protected ?int $checkRatio = null; diff --git a/src/LaunchDarkly/LDClient.php b/src/LaunchDarkly/LDClient.php index ed8addf4..a06e429d 100644 --- a/src/LaunchDarkly/LDClient.php +++ b/src/LaunchDarkly/LDClient.php @@ -34,6 +34,8 @@ /** * A client for the LaunchDarkly API. + * + * @psalm-api */ class LDClient { diff --git a/src/LaunchDarkly/LDContext.php b/src/LaunchDarkly/LDContext.php index b7203a0b..0dbfa6db 100644 --- a/src/LaunchDarkly/LDContext.php +++ b/src/LaunchDarkly/LDContext.php @@ -19,6 +19,8 @@ * * An LDContext can be in an error state if it was built with invalid attributes. See * {@see \LaunchDarkly\LDContext::isValid()} and {@see \LaunchDarkly\LDContext::getError()}. + * + * @psalm-api */ class LDContext implements \JsonSerializable { diff --git a/src/LaunchDarkly/LDContextBuilder.php b/src/LaunchDarkly/LDContextBuilder.php index 2def85a1..5f6ce1b3 100644 --- a/src/LaunchDarkly/LDContextBuilder.php +++ b/src/LaunchDarkly/LDContextBuilder.php @@ -26,6 +26,8 @@ * ``` * * @see \LaunchDarkly\LDContext + * + * @psalm-api */ class LDContextBuilder { diff --git a/src/LaunchDarkly/LDContextMultiBuilder.php b/src/LaunchDarkly/LDContextMultiBuilder.php index 51ceb090..fd235d8f 100644 --- a/src/LaunchDarkly/LDContextMultiBuilder.php +++ b/src/LaunchDarkly/LDContextMultiBuilder.php @@ -24,6 +24,8 @@ * ``` * * @see \LaunchDarkly\LDContext + * + * @psalm-api */ class LDContextMultiBuilder { diff --git a/src/LaunchDarkly/Migrations/ExecutionOrder.php b/src/LaunchDarkly/Migrations/ExecutionOrder.php index ec7e661d..bfb139a6 100644 --- a/src/LaunchDarkly/Migrations/ExecutionOrder.php +++ b/src/LaunchDarkly/Migrations/ExecutionOrder.php @@ -8,6 +8,8 @@ * Depending on the migration stage, reads may operate against both old and new * origins. In this situation, the execution order can be defined to specify * how these individual reads are coordinated. + * + * @psalm-api */ enum ExecutionOrder: string { diff --git a/src/LaunchDarkly/Migrations/MigrationConfig.php b/src/LaunchDarkly/Migrations/MigrationConfig.php index 04555710..8ae63ea4 100644 --- a/src/LaunchDarkly/Migrations/MigrationConfig.php +++ b/src/LaunchDarkly/Migrations/MigrationConfig.php @@ -12,6 +12,8 @@ * customer defined read or write operations on old or new origins of * information. For read operations, an optional comparison function also be * defined. + * + * @psalm-api */ class MigrationConfig { diff --git a/src/LaunchDarkly/Migrations/Migrator.php b/src/LaunchDarkly/Migrations/Migrator.php index 08649636..bec85bc0 100644 --- a/src/LaunchDarkly/Migrations/Migrator.php +++ b/src/LaunchDarkly/Migrations/Migrator.php @@ -14,6 +14,8 @@ * * This class is not intended to be instanced directly, but instead should be constructed * using the {@see MigratorBuilder}. + * + * @psalm-api */ class Migrator { diff --git a/src/LaunchDarkly/Migrations/MigratorBuilder.php b/src/LaunchDarkly/Migrations/MigratorBuilder.php index 887899ae..29ca48f3 100644 --- a/src/LaunchDarkly/Migrations/MigratorBuilder.php +++ b/src/LaunchDarkly/Migrations/MigratorBuilder.php @@ -12,6 +12,8 @@ * The migration builder is used to configure and construct an instance of a * {@see Migrator}. This migrator can be used to perform LaunchDarkly assisted * technology migrations through the use of migration-based feature flags. + * + * @psalm-api */ class MigratorBuilder { diff --git a/src/LaunchDarkly/Migrations/OpTracker.php b/src/LaunchDarkly/Migrations/OpTracker.php index 6eb2a22d..8f6d2a13 100644 --- a/src/LaunchDarkly/Migrations/OpTracker.php +++ b/src/LaunchDarkly/Migrations/OpTracker.php @@ -20,6 +20,8 @@ * The OpTracker is not expected to be instantiated directly. Consumers should * instead call {@see \LaunchDarkly\LDClient:migration_variation()} and use the * returned tracker instance. + * + * @psalm-api */ class OpTracker { diff --git a/src/LaunchDarkly/Migrations/Operation.php b/src/LaunchDarkly/Migrations/Operation.php index 518f4a28..c10878cc 100644 --- a/src/LaunchDarkly/Migrations/Operation.php +++ b/src/LaunchDarkly/Migrations/Operation.php @@ -7,6 +7,8 @@ /** * The operation enum is used to record the type of migration operation that * occurred. + * + * @psalm-api */ enum Operation: string { diff --git a/src/LaunchDarkly/Migrations/OperationResult.php b/src/LaunchDarkly/Migrations/OperationResult.php index b43286cf..506883a4 100644 --- a/src/LaunchDarkly/Migrations/OperationResult.php +++ b/src/LaunchDarkly/Migrations/OperationResult.php @@ -9,6 +9,8 @@ /** * The OperationResult pairs an origin with a result. + * + * @psalm-api */ class OperationResult { diff --git a/src/LaunchDarkly/Migrations/Origin.php b/src/LaunchDarkly/Migrations/Origin.php index 781475f9..97afcfa7 100644 --- a/src/LaunchDarkly/Migrations/Origin.php +++ b/src/LaunchDarkly/Migrations/Origin.php @@ -7,6 +7,8 @@ /** * The origin enum is used to denote which source of data should be affected * by a particular operation. + * + * @psalm-api */ enum Origin: string { diff --git a/src/LaunchDarkly/Migrations/Stage.php b/src/LaunchDarkly/Migrations/Stage.php index cef9d028..77a74db6 100644 --- a/src/LaunchDarkly/Migrations/Stage.php +++ b/src/LaunchDarkly/Migrations/Stage.php @@ -9,6 +9,8 @@ * part of, progressing through the following order. * * OFF -> DUALWRITE -> SHADOW -> LIVE -> RAMPDOWN -> COMPLETE + * + * @psalm-api */ enum Stage: string { diff --git a/src/LaunchDarkly/Migrations/WriteResult.php b/src/LaunchDarkly/Migrations/WriteResult.php index 12283731..31fe7c7b 100644 --- a/src/LaunchDarkly/Migrations/WriteResult.php +++ b/src/LaunchDarkly/Migrations/WriteResult.php @@ -6,6 +6,8 @@ /** * The WriteResult pairs an origin with a result. + * + * @psalm-api */ class WriteResult { diff --git a/src/LaunchDarkly/Subsystems/BigSegmentStatusListener.php b/src/LaunchDarkly/Subsystems/BigSegmentStatusListener.php index 4eae7a8c..f39af8e6 100644 --- a/src/LaunchDarkly/Subsystems/BigSegmentStatusListener.php +++ b/src/LaunchDarkly/Subsystems/BigSegmentStatusListener.php @@ -8,6 +8,8 @@ /** * Interface for a listener that will be notified when the status of the Big Segment store changes. + * + * @psalm-api */ interface BigSegmentStatusListener { diff --git a/src/LaunchDarkly/Subsystems/BigSegmentStatusProvider.php b/src/LaunchDarkly/Subsystems/BigSegmentStatusProvider.php index f701c008..4f6439f5 100644 --- a/src/LaunchDarkly/Subsystems/BigSegmentStatusProvider.php +++ b/src/LaunchDarkly/Subsystems/BigSegmentStatusProvider.php @@ -36,6 +36,8 @@ * determined to have changed. This included during evaluation or when the * status is checked directly. Listeners are encouraged to be as fast as * possible. + * + * @psalm-api */ interface BigSegmentStatusProvider { diff --git a/src/LaunchDarkly/Subsystems/BigSegmentsStore.php b/src/LaunchDarkly/Subsystems/BigSegmentsStore.php index 76d47306..69f07a0b 100644 --- a/src/LaunchDarkly/Subsystems/BigSegmentsStore.php +++ b/src/LaunchDarkly/Subsystems/BigSegmentsStore.php @@ -8,6 +8,8 @@ /** * Interface for a store that provides access to Big Segments data. + * + * @psalm-api */ interface BigSegmentsStore { diff --git a/src/LaunchDarkly/Subsystems/EventPublisher.php b/src/LaunchDarkly/Subsystems/EventPublisher.php index 6062a9bf..419c544c 100644 --- a/src/LaunchDarkly/Subsystems/EventPublisher.php +++ b/src/LaunchDarkly/Subsystems/EventPublisher.php @@ -11,6 +11,8 @@ * * - {@see \LaunchDarkly\Integrations\Curl::eventPublisher()} (the default) * - {@see \LaunchDarkly\Integrations\Guzzle::eventPublisher()} + * + * @psalm-api */ interface EventPublisher { diff --git a/src/LaunchDarkly/Subsystems/FeatureRequester.php b/src/LaunchDarkly/Subsystems/FeatureRequester.php index e6712679..aa396b2b 100644 --- a/src/LaunchDarkly/Subsystems/FeatureRequester.php +++ b/src/LaunchDarkly/Subsystems/FeatureRequester.php @@ -17,6 +17,8 @@ * - Database integrations provided in separate packages. See: https://docs.launchdarkly.com/sdk/features/storing-data#php * - A mechanism for reading data from the filesystem: {@see \LaunchDarkly\Integrations\Files} * - A mechanism for injecting test data: {@see \LaunchDarkly\Integrations\TestData} + * + * @psalm-api */ interface FeatureRequester { diff --git a/src/LaunchDarkly/Types/ApplicationInfo.php b/src/LaunchDarkly/Types/ApplicationInfo.php index 6ae77e3b..1c120964 100644 --- a/src/LaunchDarkly/Types/ApplicationInfo.php +++ b/src/LaunchDarkly/Types/ApplicationInfo.php @@ -15,6 +15,8 @@ * - Cannot be empty * - Cannot exceed 64 characters in length * - Can only contain a-z, A-Z, 0-9, period (.), dash (-), and underscore (_). + * + * @psalm-api */ final class ApplicationInfo { diff --git a/src/LaunchDarkly/Types/AttributeReference.php b/src/LaunchDarkly/Types/AttributeReference.php index 953b7dd5..b7c35d54 100644 --- a/src/LaunchDarkly/Types/AttributeReference.php +++ b/src/LaunchDarkly/Types/AttributeReference.php @@ -21,6 +21,8 @@ * or "~" in a path component are escaped as "~1" or "~0" respectively. This syntax * deliberately resembles JSON Pointer, but no JSON Pointer behaviors other than those * mentioned here are supported. + * + * @psalm-api */ class AttributeReference { diff --git a/src/LaunchDarkly/Types/BigSegmentsConfig.php b/src/LaunchDarkly/Types/BigSegmentsConfig.php index 10b15d8d..58ce5d9b 100644 --- a/src/LaunchDarkly/Types/BigSegmentsConfig.php +++ b/src/LaunchDarkly/Types/BigSegmentsConfig.php @@ -18,6 +18,8 @@ * BigSegmentsConfig that at a minimum specifies what database integration to * use, and then pass the `BigSegmentsConfig` object as the `big_segments` * parameter when creating a {@see LaunchDarkly\LDClient}. + * + * @psalm-api */ class BigSegmentsConfig { diff --git a/src/LaunchDarkly/Types/BigSegmentsStoreMetadata.php b/src/LaunchDarkly/Types/BigSegmentsStoreMetadata.php index 9eff5a9a..ac65eb32 100644 --- a/src/LaunchDarkly/Types/BigSegmentsStoreMetadata.php +++ b/src/LaunchDarkly/Types/BigSegmentsStoreMetadata.php @@ -6,6 +6,8 @@ /** * Metadata about the state of a big segments store. + * + * @psalm-api */ class BigSegmentsStoreMetadata { diff --git a/src/LaunchDarkly/Types/BigSegmentsStoreStatus.php b/src/LaunchDarkly/Types/BigSegmentsStoreStatus.php index 9b3b9183..2a11eac0 100644 --- a/src/LaunchDarkly/Types/BigSegmentsStoreStatus.php +++ b/src/LaunchDarkly/Types/BigSegmentsStoreStatus.php @@ -9,6 +9,8 @@ * * Big Segments are a specific type of segments. For more information, read the LaunchDarkly * documentation: https://docs.launchdarkly.com/home/users/big-segments + * + * @psalm-api */ class BigSegmentsStoreStatus { diff --git a/src/LaunchDarkly/Types/Result.php b/src/LaunchDarkly/Types/Result.php index 3c9d1e64..b075d7f4 100644 --- a/src/LaunchDarkly/Types/Result.php +++ b/src/LaunchDarkly/Types/Result.php @@ -16,6 +16,8 @@ * * If the operation fails, the Result will contain an error describing the * value. An optional exception may also be provided. + * + * @psalm-api */ final class Result {