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

[VarExporter] Fix syntax that makes psalm crash #45927

Merged
merged 1 commit into from Apr 3, 2022

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 6.1
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Should make running psalm possible again.

/cc @orklah FYI, running this code (before the change proposed her) with dev-master crashes:
plasm --set-baseline=.github/psalm/psalm.baseline.xml --no-progress src/Symfony/Component/VarExporter/

@carsonbot carsonbot added this to the 6.1 milestone Apr 3, 2022
@nicolas-grekas nicolas-grekas merged commit 275448e into symfony:6.1 Apr 3, 2022
@nicolas-grekas nicolas-grekas deleted the psalm-wo branch April 3, 2022 10:38
@nicolas-grekas
Copy link
Member Author

Grrr this change doesn't work around the issue. Using \Closure::fromCallable([$reflector, 'newInstanceWithoutConstructor']) does.

@nicolas-grekas
Copy link
Member Author

For the record, [$reflector, 'newInstanceWithoutConstructor'](...) also works around the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants