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

ExportedPhpDocNode::__construct(): Argument #4 ($constUses) must be of type array, null given #7130

Closed
staabm opened this issue Apr 27, 2022 · 3 comments

Comments

@staabm
Copy link
Contributor

staabm commented Apr 27, 2022

Bug report

not sure the report is helpful, but running phpstan in the phpstorm integration sometimes reports a error like

'TypeError' with message 'PHPStan\Dependency\ExportedNode\ExportedPhpDocNode::__construct(): Argument #4 ($constUses) must be of type array, null given, 
called in phar://C:/dvl/Workspace/daiber/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Dependency/ExportedNode/ExportedPhpDocNode.php on line 67' (0) 
> in phar://C:/dvl/Workspace/daiber/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Dependency/ExportedNode/ExportedPhpDocNode.php:31

I see this error the first time on phpstan 1.6.0 using PHP 8.0.15

@mergeable
Copy link

mergeable bot commented Apr 27, 2022

This bug report is missing a link to reproduction at phpstan.org/try.

It will most likely be closed after manual review.

@ondrejmirtes
Copy link
Member

Yeah, not surprised by that. Fixed: phpstan/phpstan-src@3fe2726

@github-actions
Copy link

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 May 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants