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

pro version 1.0.0 crashes immediately after completing the analysis #5875

Closed
B0bbyD0llar opened this issue Nov 1, 2021 · 7 comments
Closed
Labels

Comments

@B0bbyD0llar
Copy link

B0bbyD0llar commented Nov 1, 2021

Bug report

Hello,

after updating to 1.0.0 i cant use the pro version. The following error message appears shortly if the analysis is finished:

In ExportedNodeResolver.php line 96:

  Expected node type PhpParser\Node\Stmt\Property, NULL occurred.

with 0.12.99 work all fine, also if i start without --pro.

Code snippet that reproduces the problem

.\vendor\bin\phpstan --pro

Expected output

Open your web browser at: http://127.0.0.1:60502
Press [Ctrl-C] to quit.

Did PHPStan help you today? Did it make you happy in any way?

@mergeable
Copy link

mergeable bot commented Nov 1, 2021

This bug report is missing a link to reproduction on phpstan.org.

It will most likely be closed after manual review.

@ondrejmirtes
Copy link
Member

H, thank you, I reproduced it, investigating the problem.

@spaze
Copy link
Contributor

spaze commented Nov 2, 2021

Hi, I'm not a pro user (yet) but seems I hit the same issue with 1.0, at least on the same line/file:

I'm running Ubuntu 20.04 (same as GitHub Actions), PHP 8.0.12 (GitHub Actions 8.0.11), vendor folder with all the dependencies including PHPStan commited in the repo.

Hope this helps a bit, however feel free to delete/mute if the issue or root cause is different.

@ondrejmirtes
Copy link
Member

I just released a fix for this in PHPStan 1.0.1: phpstan/phpstan-src@e5f8e72

Please test it if it works for you :)

@B0bbyD0llar
Copy link
Author

Thank you for this quick solution. It works like a charm.

@spaze
Copy link
Contributor

spaze commented Nov 2, 2021

Thanks @ondrejmirtes, it has fixed my issue as well, good job 👍

@github-actions
Copy link

github-actions bot commented Dec 4, 2021

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants