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

Add libxml_get_external_entity_loader to CallMap (PHP 8.2) #8871

Merged
merged 3 commits into from
Dec 9, 2022
Merged

Add libxml_get_external_entity_loader to CallMap (PHP 8.2) #8871

merged 3 commits into from
Dec 9, 2022

Conversation

alies-dev
Copy link
Contributor

Docs: https://www.php.net/manual/en/function.libxml-get-external-entity-loader.php

PS: not sure how '(callable(string,string,array):(resource|string|null))|null' syntax readable by psalm. I can even specify array shape here, but the risk to make it unreadable will be even higher. So I've decided to start from a simpler solution.

@danog
Copy link
Collaborator

danog commented Dec 9, 2022

It's actually OK and I strongly recommend you provide an array shape for the third callable argument of libxml_set_external_entity_loader and libxml_get_external_entity_loader

@alies-dev
Copy link
Contributor Author

Array shape added by aced003

@weirdan weirdan added internal stubs/callmap release:feature The PR will be included in 'Features' section of the release notes labels Dec 9, 2022
@weirdan weirdan merged commit a568b08 into vimeo:master Dec 9, 2022
@weirdan
Copy link
Collaborator

weirdan commented Dec 9, 2022

Thanks!

@alies-dev alies-dev deleted the libxml_get_external_entity_loader branch December 10, 2022 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal stubs/callmap release:feature The PR will be included in 'Features' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants