Skip to content

Conversation

florianschaefer-jb
Copy link

Prior to this change, PHPStorm's type inference would always return mixed for the return types of array_first and array_last. By upgrading the input types to templates, we implicitly enforce the use of a more advanced generics type provider that deals with array elements correctly.

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