Skip to content

Comments

Use Faker for unions in type inference#295

Merged
szepeviktor merged 1 commit intophp-stubs:masterfrom
IanDelMar:faker-unions
Jul 29, 2025
Merged

Use Faker for unions in type inference#295
szepeviktor merged 1 commit intophp-stubs:masterfrom
IanDelMar:faker-unions

Conversation

@IanDelMar
Copy link
Contributor

This PR uses the Faker class for type inference involving constant types in unions and adds several type assertions. While previously not working, constant types in unions can now be used.

@szepeviktor
Copy link
Member

So long, and thanks for all the bytes!

@szepeviktor szepeviktor merged commit 0daa228 into php-stubs:master Jul 29, 2025
6 checks passed
@IanDelMar IanDelMar deleted the faker-unions branch July 29, 2025 19:56
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.

2 participants