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

Fix ConstantArrayType for optional/non-optional keys #1249

Merged

Conversation

rvanvelzen
Copy link
Contributor

@ondrejmirtes
Copy link
Member

Perfect, I'm 5 minutes behind you :D Thanks.

@@ -751,6 +751,12 @@ public function testBug7078(): void
$this->assertNoErrors($errors);
}

public function testBug3853(): void
{
$errors = $this->runAnalyse(__DIR__ . '/data/bug-3853.php');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I reused this test cases which had exactly the same code in it.

@ondrejmirtes
Copy link
Member

At least I did this: 2f49187

@ondrejmirtes ondrejmirtes merged commit 5f634bb into phpstan:1.6.x Apr 26, 2022
@ondrejmirtes
Copy link
Member

Thank you!

@rvanvelzen rvanvelzen deleted the constant-type-supertype-optional-key branch April 26, 2022 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants