Skip to content

Map arrays with defined fields as generic arrays#23

Merged
jerodev merged 1 commit intomasterfrom
feature/array-fields-fallback
Jan 7, 2024
Merged

Map arrays with defined fields as generic arrays#23
jerodev merged 1 commit intomasterfrom
feature/array-fields-fallback

Conversation

@jerodev
Copy link
Copy Markdown
Owner

@jerodev jerodev commented Jan 7, 2024

Data mapper currently has no support for arrays with defined fields, it even crashes when these definitions are encountered.

This update resolves the crash, but it will not yet map the fields. The array will be mapped as is. A future update is still needed to map each field.

/** @var array{bar: string, baz: int} */
public array $foo;

@jerodev jerodev self-assigned this Jan 7, 2024
@jerodev jerodev merged commit deb85e8 into master Jan 7, 2024
@jerodev jerodev deleted the feature/array-fields-fallback branch January 7, 2024 11:40
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