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

fix: phpdoc and exception #371

Merged
merged 3 commits into from
Nov 8, 2021
Merged

fix: phpdoc and exception #371

merged 3 commits into from
Nov 8, 2021

Conversation

bshaffer
Copy link
Collaborator

@bshaffer bshaffer commented Nov 8, 2021

See #369

@InvisibleSmiley
Copy link

anything|mixed is equal to mixed. Either list all valid types as union or just put mixed there.

@bshaffer
Copy link
Collaborator Author

bshaffer commented Nov 8, 2021

anything|mixed is equal to mixed. Either list all valid types as union or just put mixed there.

It's intentional, because mixed is only there for BC, and I want to emphasize the things that are recommended (Key|array<Key>) while not breaking static analyzers or IDEs

@InvisibleSmiley
Copy link

It's intentional

Well in that case I guess we're good to go. Personally I'd just have combined the old typehints with the new ones until a new major version comes around.

Just for confirmation: https://phpstan.org/r/00fdcc9d-0bd5-4ac6-82ab-c57f63a949f3

@bshaffer bshaffer merged commit 83b6090 into master Nov 8, 2021
@bshaffer bshaffer deleted the fix-phpdoc-and-exception branch November 8, 2021 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants