Skip to content

Conversation

@rvanvelzen
Copy link
Contributor

No description provided.

@rvanvelzen rvanvelzen changed the title Fix array_unshift for union of constant arrays Fix array_unshift for union of constant arrays Sep 22, 2022
@herndlm
Copy link
Contributor

herndlm commented Sep 22, 2022

Thank you! I wrongfully implemented this before I fully understood how the constant array type helpers work :)

What do you think of moving your new tests to https://github.com/phpstan/phpstan-src/blob/1.8.5/tests/PHPStan/Analyser/data/array-unshift.php and also adding the analogue thing for https://github.com/phpstan/phpstan-src/blob/1.8.5/tests/PHPStan/Analyser/data/array-push.php which should be fixed/improved too?

@ondrejmirtes ondrejmirtes merged commit 9077af6 into phpstan:1.8.x Sep 22, 2022
@ondrejmirtes
Copy link
Member

Thank you!

@rvanvelzen rvanvelzen deleted the constant-array-union-unshift branch September 22, 2022 08:31
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