Skip to content

Conversation

@jerodev
Copy link
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.

2 participants