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

Reproduce bug 10449 #10508

Closed
wants to merge 8 commits into from
Closed

Reproduce bug 10449 #10508

wants to merge 8 commits into from

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jan 29, 2024

script: |
cd e2e/bug10449
composer install
../../phpstan analyze --error-format=json --no-progress | jq '.files[].messages[].message' | grep "Dumped type: string"
Copy link
Member

Choose a reason for hiding this comment

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

You should express this with something that can be baselined, like passing an argument to a method call.


public function __invoke(): string
{
$value = $this->queryBus->handle(new Query\ExampleQuery());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

in this test-case the bug is triggered because of this New_


public function __invoke($x): string
{
if ($x instanceof Query\ExampleQuery)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

in this test-case the same error is triggered based on Instanceof_

Copy link
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.

Oh my god, I am so sorry. I have just noticed this is in phpstan/phpstan and not in phpstan/phpstan-src. I was puzzled that I don't see other result cache-related tests when I expanded the surrounding lines in the diff in the workflow file.

Previously yout put this correctly in there (phpstan/phpstan-src@38eb365) so why did you suddenly choose to do it here instead? I'd prefer for this to be alongside other result cache tests.

@staabm
Copy link
Contributor Author

staabm commented Jan 30, 2024

I miss-remembered where to put the result-cache e2e tests.

@staabm staabm closed this Jan 30, 2024
@staabm staabm deleted the bug10449 branch January 30, 2024 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
Development

Successfully merging this pull request may close these issues.

None yet

2 participants