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

Specify union type in phpdoc #32

Merged
merged 1 commit into from
Aug 24, 2022
Merged

Specify union type in phpdoc #32

merged 1 commit into from
Aug 24, 2022

Conversation

4c0n
Copy link
Contributor

@4c0n 4c0n commented Aug 15, 2022

The php version constraint for this package is PHP ^7.4 | ^8.0.
Union types are however not supported in PHP 7.4.

My suggestion is to specify the union type in the doc block for now and drop support for PHP 7.4, when it is no longer supported in a few months from now: https://www.php.net/supported-versions.php

@4c0n
Copy link
Contributor Author

4c0n commented Aug 22, 2022

@chrisnharvey Have you had some time to have a look at this? It's only a small change.
Thanks in advance for your time and effort.

@chrisnharvey
Copy link
Owner

Apologies for the delay, and thanks for your contribution!

@chrisnharvey chrisnharvey merged commit 0748272 into chrisnharvey:master Aug 24, 2022
@chrisnharvey
Copy link
Owner

Will tag a new version today.

@4c0n
Copy link
Contributor Author

4c0n commented Aug 24, 2022

Awesome, thank you!

@4c0n 4c0n deleted the remove-union-type branch August 25, 2022 06:36
@4c0n 4c0n restored the remove-union-type branch August 25, 2022 06:36
@4c0n
Copy link
Contributor Author

4c0n commented Aug 26, 2022

@chrisnharvey Did you maybe forget to tag a new version?

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