We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be wonderful if PHP Stan didn't throw errors for this example:
https://phpstan.org/r/fea50f42-6a4b-41d7-8bf6-14feee0b0be8
The text was updated successfully, but these errors were encountered:
@mind-bending-forks After the latest commit in dev-master, PHPStan now reports different result with your code snippet:
@@ @@ -11: Offset 'a-param' does not exist on array('type' => 'a', 'a-param' => string)|array('type' => 'a', 'b-param' => string). -15: Offset 'b-param' does not exist on array('type' => 'b', 'a-param' => string)|array('type' => 'b', 'b-param' => string). +11: Offset 'a-param' does not exist on array{type: 'a', a-param: string}|array{type: 'a', b-param: string}. +15: Offset 'b-param' does not exist on array{type: 'b', a-param: string}|array{type: 'b', b-param: string}.
Sorry, something went wrong.
@mind-bending-forks After the latest push in 1.8.x, PHPStan now reports different result with your code snippet:
@@ @@ -11: Offset 'a-param' does not exist on array('type' => 'a', 'a-param' => string)|array('type' => 'a', 'b-param' => string). -15: Offset 'b-param' does not exist on array('type' => 'b', 'a-param' => string)|array('type' => 'b', 'b-param' => string). +No errors
phpstan/phpstan-src@5d7a1a5
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Feature request
It would be wonderful if PHP Stan didn't throw errors for this example:
https://phpstan.org/r/fea50f42-6a4b-41d7-8bf6-14feee0b0be8
The text was updated successfully, but these errors were encountered: