Skip to content

Conversation

BenMorel
Copy link
Contributor

No description provided.

@BenMorel
Copy link
Contributor Author

CI fails with:

Function \gmp_div_qr has mismatch in phpdoc return type and signature return type.
Signature has array but phpdoc has GMP}

Don't stubs support array shapes like array{GMP, GMP}?

@isfedorov
Copy link
Contributor

@BenMorel Unfortunately not yet. The test was written at the times when PhpStorm didn't support such array shapes yet. But I think now we can reconsider it and update the test

@VincentLanglet
Copy link
Contributor

@BenMorel If you want to fix your test, you just need to update this line
https://github.com/JetBrains/phpstorm-stubs/blob/master/tests/Model/PHPFunction.php#L140
to

} elseif ($type instanceof List_ || $type instanceof ArrayShape) {

@isfedorov isfedorov merged commit 3c9b3f8 into JetBrains:master Sep 2, 2025
6 of 12 checks passed
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