Skip to content

feat: Add support for big segments #60

feat: Add support for big segments

feat: Add support for big segments #60

Triggered via pull request January 13, 2025 18:33
Status Failure
Total duration 2m 49s
Artifacts

ci.yml

on: pull_request
Matrix: linux-build
Matrix: windows-build
Fit to window
Zoom out
Zoom in

Annotations

20 errors
PossiblyNullArgument: src/LaunchDarkly/Impl/BigSegments/StoreManager.php#L59
src/LaunchDarkly/Impl/BigSegments/StoreManager.php:59:40: PossiblyNullArgument: Argument 1 of Psr\Cache\CacheItemInterface::expiresAfter cannot be null, possibly null value provided (see https://psalm.dev/078)
InvalidReturnType: src/LaunchDarkly/Impl/Evaluation/Evaluator.php#L318
src/LaunchDarkly/Impl/Evaluation/Evaluator.php:318:107: InvalidReturnType: The declared return type 'bool' for LaunchDarkly\Impl\Evaluation\Evaluator::bigSegmentContextMatch is incorrect, got 'array<string, bool>|bool' (see https://psalm.dev/011)
InvalidPropertyAssignmentValue: src/LaunchDarkly/Impl/Evaluation/Evaluator.php#L351
src/LaunchDarkly/Impl/Evaluation/Evaluator.php:351:17: InvalidPropertyAssignmentValue: $state->bigSegmentMembership with declared type 'array<string, array<string, bool>>|null' cannot be assigned type 'non-empty-array<string, array<array-key, array<string, bool>|bool>|null>' (see https://psalm.dev/145)
InvalidReturnStatement: src/LaunchDarkly/Impl/Evaluation/Evaluator.php#L364
src/LaunchDarkly/Impl/Evaluation/Evaluator.php:364:20: InvalidReturnStatement: The inferred type 'array<string, bool>|bool' does not match the declared return type 'bool' for LaunchDarkly\Impl\Evaluation\Evaluator::bigSegmentContextMatch (see https://psalm.dev/128)
linux-build (8.2, false)
Process completed with exit code 2.
PossiblyNullArgument: src/LaunchDarkly/Impl/BigSegments/StoreManager.php#L59
src/LaunchDarkly/Impl/BigSegments/StoreManager.php:59:40: PossiblyNullArgument: Argument 1 of Psr\Cache\CacheItemInterface::expiresAfter cannot be null, possibly null value provided (see https://psalm.dev/078)
InvalidReturnType: src/LaunchDarkly/Impl/Evaluation/Evaluator.php#L318
src/LaunchDarkly/Impl/Evaluation/Evaluator.php:318:107: InvalidReturnType: The declared return type 'bool' for LaunchDarkly\Impl\Evaluation\Evaluator::bigSegmentContextMatch is incorrect, got 'array<string, bool>|bool' (see https://psalm.dev/011)
InvalidPropertyAssignmentValue: src/LaunchDarkly/Impl/Evaluation/Evaluator.php#L351
src/LaunchDarkly/Impl/Evaluation/Evaluator.php:351:17: InvalidPropertyAssignmentValue: $state->bigSegmentMembership with declared type 'array<string, array<string, bool>>|null' cannot be assigned type 'non-empty-array<string, array<array-key, array<string, bool>|bool>|null>' (see https://psalm.dev/145)
InvalidReturnStatement: src/LaunchDarkly/Impl/Evaluation/Evaluator.php#L364
src/LaunchDarkly/Impl/Evaluation/Evaluator.php:364:20: InvalidReturnStatement: The inferred type 'array<string, bool>|bool' does not match the declared return type 'bool' for LaunchDarkly\Impl\Evaluation\Evaluator::bigSegmentContextMatch (see https://psalm.dev/128)
linux-build (8.1, true)
Process completed with exit code 2.
PossiblyNullArgument: src/LaunchDarkly/Impl/BigSegments/StoreManager.php#L59
src/LaunchDarkly/Impl/BigSegments/StoreManager.php:59:40: PossiblyNullArgument: Argument 1 of Psr\Cache\CacheItemInterface::expiresAfter cannot be null, possibly null value provided (see https://psalm.dev/078)
InvalidReturnType: src/LaunchDarkly/Impl/Evaluation/Evaluator.php#L318
src/LaunchDarkly/Impl/Evaluation/Evaluator.php:318:107: InvalidReturnType: The declared return type 'bool' for LaunchDarkly\Impl\Evaluation\Evaluator::bigSegmentContextMatch is incorrect, got 'array<string, bool>|bool' (see https://psalm.dev/011)
InvalidPropertyAssignmentValue: src/LaunchDarkly/Impl/Evaluation/Evaluator.php#L351
src/LaunchDarkly/Impl/Evaluation/Evaluator.php:351:17: InvalidPropertyAssignmentValue: $state->bigSegmentMembership with declared type 'array<string, array<string, bool>>|null' cannot be assigned type 'non-empty-array<string, array<array-key, array<string, bool>|bool>|null>' (see https://psalm.dev/145)
InvalidReturnStatement: src/LaunchDarkly/Impl/Evaluation/Evaluator.php#L364
src/LaunchDarkly/Impl/Evaluation/Evaluator.php:364:20: InvalidReturnStatement: The inferred type 'array<string, bool>|bool' does not match the declared return type 'bool' for LaunchDarkly\Impl\Evaluation\Evaluator::bigSegmentContextMatch (see https://psalm.dev/128)
linux-build (8.1, false)
Process completed with exit code 2.
PossiblyNullArgument: src/LaunchDarkly/Impl/BigSegments/StoreManager.php#L59
src/LaunchDarkly/Impl/BigSegments/StoreManager.php:59:40: PossiblyNullArgument: Argument 1 of Psr\Cache\CacheItemInterface::expiresAfter cannot be null, possibly null value provided (see https://psalm.dev/078)
InvalidReturnType: src/LaunchDarkly/Impl/Evaluation/Evaluator.php#L318
src/LaunchDarkly/Impl/Evaluation/Evaluator.php:318:107: InvalidReturnType: The declared return type 'bool' for LaunchDarkly\Impl\Evaluation\Evaluator::bigSegmentContextMatch is incorrect, got 'array<string, bool>|bool' (see https://psalm.dev/011)
InvalidPropertyAssignmentValue: src/LaunchDarkly/Impl/Evaluation/Evaluator.php#L351
src/LaunchDarkly/Impl/Evaluation/Evaluator.php:351:17: InvalidPropertyAssignmentValue: $state->bigSegmentMembership with declared type 'array<string, array<string, bool>>|null' cannot be assigned type 'non-empty-array<string, array<array-key, array<string, bool>|bool>|null>' (see https://psalm.dev/145)
InvalidReturnStatement: src/LaunchDarkly/Impl/Evaluation/Evaluator.php#L364
src/LaunchDarkly/Impl/Evaluation/Evaluator.php:364:20: InvalidReturnStatement: The inferred type 'array<string, bool>|bool' does not match the declared return type 'bool' for LaunchDarkly\Impl\Evaluation\Evaluator::bigSegmentContextMatch (see https://psalm.dev/128)
linux-build (8.2, true)
Process completed with exit code 2.