Skip to content

test(hal): correct context array key type in normalizer test docblock - #7964

Merged
soyuka merged 1 commit into
api-platform:4.3from
soyuka:fix/hal-test-context-docblock-4.3
May 11, 2026
Merged

test(hal): correct context array key type in normalizer test docblock#7964
soyuka merged 1 commit into
api-platform:4.3from
soyuka:fix/hal-test-context-docblock-4.3

Conversation

@soyuka

@soyuka soyuka commented May 11, 2026

Copy link
Copy Markdown
Member
Q A
Branch? 4.3
Tickets
License MIT
Doc PR

testSkipNullToOneRelation docblock declared @param array<int,mixed> for both $context and $expected, but both arrays are string-keyed (option flags like skip_null_to_one_relations and HAL response shapes). PHPStan flagged the resulting type mismatch when the context is passed to ItemNormalizer::normalize().

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Tickets       | ∅
| License       | MIT
| Doc PR        | ∅
@soyuka
soyuka merged commit c67c14e into api-platform:4.3 May 11, 2026
117 of 120 checks passed
@soyuka
soyuka deleted the fix/hal-test-context-docblock-4.3 branch May 11, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant