Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add php8 array_is_list function #589

Merged
merged 1 commit into from
Aug 11, 2022
Merged

Conversation

quasilyte
Copy link
Contributor

This function works like array<>::is_pseudo_vector,
but also includes a fast path for arrays that are real vectors.

In the end, it behaves like php8 array_is_list function,
hence it has the same name.

Refs #290

@quasilyte quasilyte added PHP8 PHP8 feature small fix When it's not an huge enhancement labels Aug 9, 2022
@quasilyte quasilyte force-pushed the quasilyte/php8_array_is_list branch from 9f32dc2 to c32720e Compare August 9, 2022 10:23
This function works like `array<>::is_pseudo_vector`,
but also includes a fast path for arrays that are real vectors.

In the end, it behaves like php8 `array_is_list` function,
hence it has the same name.

Refs #290
@quasilyte quasilyte merged commit 6dd765a into master Aug 11, 2022
@quasilyte quasilyte deleted the quasilyte/php8_array_is_list branch August 11, 2022 19:22
@unserialize unserialize added this to the next milestone Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PHP8 PHP8 feature small fix When it's not an huge enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants