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

Skip StringsMatchDynamicReturnTypeExtensionTest on PHP 7.2/7.3 #149

Closed
wants to merge 5 commits into from

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jun 22, 2024

ArrayShapeMatcher does not work for these old php versions

should fix phpstan-src CI errors

grafik

staabm added 2 commits June 22, 2024 09:39
ArrayShapeMatcher does not work for these old php versions
@staabm staabm marked this pull request as ready for review June 22, 2024 07:40
@staabm
Copy link
Contributor Author

staabm commented Jun 22, 2024

here we go

return;
}

yield from self::gatherAssertTypes(__DIR__ . '/data/strings-match.php');
Copy link
Member

Choose a reason for hiding this comment

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

Can you please explain what is it about these example that they cannot work on PHP 7.2 and 7.3?

Copy link
Contributor Author

@staabm staabm Jun 22, 2024

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Can you link 3v4l.org example that shows different results for the cutoff versions? Something that's different between 7.3 and 7.4 and that makes this not work for these older versions.

I tried running the links in the comments but they have the same output https://3v4l.org/sOXbn https://3v4l.org/3SdDM

Copy link
Contributor Author

@staabm staabm Jun 22, 2024

Choose a reason for hiding this comment

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

See https://3v4l.org/dYdoO#v7.2.0

as soon as the hoa regex ast would contain enough information that we no longer need the caputring group hack, we could support 7.2/7.3

@staabm
Copy link
Contributor Author

staabm commented Jun 24, 2024

obsolete with phpstan/phpstan-src#3184

@staabm staabm closed this Jun 24, 2024
@staabm staabm deleted the patch-1 branch June 24, 2024 13:05
@staabm staabm restored the patch-1 branch June 24, 2024 13:31
@staabm staabm reopened this Jun 24, 2024
@staabm staabm closed this Jun 24, 2024
@staabm staabm deleted the patch-1 branch June 24, 2024 13:32
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