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

Fix NodeScopeResolver parameters #15

Closed
wants to merge 3 commits into from

Conversation

faissaloux
Copy link
Contributor

@faissaloux faissaloux commented Nov 18, 2023

phpstan/phpstan-src v1.10.42 have added a new argument of type SignatureMapProvider to NodeScopeResolver which causing this error when installing pestphp/pest-plugin-type-coverage. Same thing for fourth last parameter which been added on v1.10.43. This must be fixed after merging this PR.

Screenshot from 2023-11-18 23-10-42

@gehrisandro
Copy link
Contributor

gehrisandro commented Nov 21, 2023

Hi @faissaloux

Your PR works fine for v1.10.42 but the current version v.1.10.43 requires already one parameter more. 😓
See https://github.com/phpstan/phpstan-src/blame/1.11.x/src/Analyser/NodeScopeResolver.php#L230

Maybe you can update your PR to fix this issue too.

The only thing required is an additional [] as the fourth last parameter. (And updating the dependency in the composer.json)

@gehrisandro
Copy link
Contributor

This PR can be closed in favour of #17

@faissaloux
Copy link
Contributor Author

faissaloux commented Nov 21, 2023

I have fixed it on this same PR. There is no need for another one.

Thanks for updating me!

@faissaloux faissaloux changed the title Fix NodeScopeResolver 9th argument Fix NodeScopeResolver parameters Nov 21, 2023
@nunomaduro
Copy link
Member

Thanks! Sandro extended this.

@nunomaduro nunomaduro closed this Nov 22, 2023
@faissaloux faissaloux deleted the fix-NodeScopeResolver-args branch November 26, 2023 16:33
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