fix: support both snake_case and camelCase versions of impression data #804
tests.yaml
on: pull_request
Matrix: Test code style
Matrix: Static analysis
Matrix: Tests
Matrix: Tests (transpiled versions)
Annotations
3 errors
Static analysis (8.3):
src/DTO/DefaultProxyFeature.php#L49
Offset 'impression_data' does not exist on array{name: string, enabled: bool, variant: array{name: string, enabled: bool, payload?: array{type: string, value: string}}, impression_data?: bool, impressionData?: bool}.
|
Static analysis (8.3):
src/Repository/DefaultUnleashProxyRepository.php#L179
Method Unleash\Client\Repository\DefaultUnleashProxyRepository::validateResponse() should return array{name: string, enabled: bool, variant: array{name: string, enabled: bool, payload?: array{type: string, value: string}}, impression_data?: bool, impressionData?: bool}|null but returns array<string, mixed>.
|
Static analysis (8.3)
Process completed with exit code 1.
|