Skip to content

str_split returns an empty array since PHP 8.2 #1544

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

Merged
merged 2 commits into from
Jul 25, 2022

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Jul 25, 2022

Refs: php/php-src#8945

See also https://3v4l.org/XfZO4 and https://3v4l.org/XfZO4/rfc#vgit.master

I never touched the delta files, is this correct like this? One of the tests at least seems to verify it. And the comments in that file are obviously outdated, but I did not touch them because they're like that in other delta files as well.

UPDATE: sorry, was doing too many things at once and forgot to cleanly run make again.. I thought I could avoid nested ternaries with the match expression 😅

@herndlm herndlm force-pushed the str-split-empty-array-return branch from b6dd598 to 62d7668 Compare July 25, 2022 08:57
@herndlm herndlm force-pushed the str-split-empty-array-return branch from 62d7668 to fa736ff Compare July 25, 2022 09:07
@herndlm herndlm marked this pull request as ready for review July 25, 2022 09:31
@ondrejmirtes
Copy link
Member

Perfect, thank you :)

@ondrejmirtes ondrejmirtes merged commit 72f4b58 into phpstan:1.8.x Jul 25, 2022
*/

/**
* This contains the information needed to convert the function signatures for php 8.0 to php 7.4 (and vice versa)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be 8.2 right?

And is this the difference between 7.4 and 8.2, or between 8.1 and 8.2?

Copy link
Contributor Author

@herndlm herndlm Jul 25, 2022

Choose a reason for hiding this comment

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

Yeah, see PR description :) UPDATE: and it is the difference between 8.1 and 8.2, yes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ondrejmirtes should the delta files all (except the original one where this was copied over) updated in that regard?

Copy link
Member

Choose a reason for hiding this comment

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

I don't care, I never read that comment :) The filename says it all.

@herndlm herndlm deleted the str-split-empty-array-return branch July 25, 2022 10:10
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.

3 participants