Skip to content

Add non regression test for bug 5232#1557

Merged
ondrejmirtes merged 3 commits intophpstan:1.8.xfrom
VincentLanglet:bug5232
Jul 26, 2022
Merged

Add non regression test for bug 5232#1557
ondrejmirtes merged 3 commits intophpstan:1.8.xfrom
VincentLanglet:bug5232

Conversation

@VincentLanglet
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

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

I haven't written this one yet, so you can do that :)

This should be a test for ReturnTypeRuleTest. I reserve AnalyserIntegrationTest.php for things that crash PHPStan or for bad performance problems.

Copy link
Copy Markdown
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

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

This test would never fail, you should check that by cherrypicking it on top of 1.8.x before the yesterday's fixes 😊

A hint: there are two ReturnTypeRuleTest classes.

@VincentLanglet
Copy link
Copy Markdown
Contributor Author

This test would never fail, you should check that by cherrypicking it on top of 1.8.x before the yesterday's fixes 😊

Indeed, I always confuse method and functions...

Should be better now

@ondrejmirtes ondrejmirtes merged commit 1eec05f into phpstan:1.8.x Jul 26, 2022
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you!

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.

PHPStan is not correctly infer the array shape

2 participants