Skip to content

Fix negative indices on empty array don't affect next chosen index #11157

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

Closed
wants to merge 7 commits into from

Conversation

ColinHDev
Copy link
Contributor

Description

This PR resolves issue #11154 and adds a test case for it.

Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! LGTM. @dstogov Do you see any issues with this? This looks like an oversight from https://wiki.php.net/rfc/negative_array_index.

Copy link
Member

@dstogov dstogov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any problems.

@iluuu1994 iluuu1994 closed this in e2f477c May 2, 2023
@iluuu1994
Copy link
Member

Thanks you @ColinHDev!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants