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

Throw exception when baseline file is empty #7036

Merged
merged 1 commit into from Dec 1, 2021

Conversation

kamil-tekiela
Copy link
Contributor

This should solve the error:

Uncaught ValueError: DOMDocument::loadXML(): Argument #1 ($source) must not be empty in ...\vimeo\psalm\src\Psalm\ErrorBaseline.php:85

@weirdan weirdan added the release:fix The PR will be included in 'Fixes' section of the release notes label Dec 1, 2021
@weirdan weirdan merged commit 7e7b595 into vimeo:master Dec 1, 2021
@weirdan
Copy link
Collaborator

weirdan commented Dec 1, 2021

Thanks!

Side note: we should probably annotate $source as non-empty-string so that Psalm would be able to catch it too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants