Skip to content

Conversation

@smoench
Copy link
Contributor

@smoench smoench commented Dec 16, 2024

resolves #504

This PR adds support for union types from the PHP documentation. They are defined as followed:

<methodsynopsis>
   <type class="union"><type>int</type><type>false</type></type>
   ...
</methodsynopsis>

Before, when a function was defined with this union type notation and it hasn't been corrected by PHPStan (function map), the return has been determined as void. This PR now determines those union type correctly. Several function are affected as you can see in the diff.

@shish
Copy link
Collaborator

shish commented Dec 17, 2024

That looks great, thank you :D

@shish shish merged commit f98860e into thecodingmachine:master Dec 17, 2024
1 check 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.

generated openssl functions are broken

2 participants