Skip to content

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