Skip to content

Make array_map argument take into account unpack #2901

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 3 commits into from
May 30, 2024

Conversation

ryium
Copy link
Contributor

@ryium ryium commented Feb 2, 2024

@phpstan-bot
Copy link
Collaborator

You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x.

@@ -1315,6 +1315,16 @@ public function testBug10509(): void
$this->assertSame('PHPDoc tag @return contains unresolvable type.', $errors[1]->getMessage());
}

public function testBug10527(): void
Copy link
Contributor

@staabm staabm Feb 2, 2024

Choose a reason for hiding this comment

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

You should move this test to the rule-test which tests the rule emitting the error you are trying to fix.

AnalyserIntegrationTest is reserved for out-of-memory or fatal error issues

@ryium ryium force-pushed the ryium/issue/10527 branch from c1ea97b to 86366cb Compare April 16, 2024 07:49
@ondrejmirtes ondrejmirtes merged commit 5422c7a into phpstan:1.11.x May 30, 2024
444 of 445 checks passed
@ondrejmirtes
Copy link
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.

ArrayMapFunctionReturnTypeExtension does not take into account for variable length argument expansion
4 participants