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

PHP8 - mixed type support #5254

Merged
merged 1 commit into from Nov 16, 2020
Merged

PHP8 - mixed type support #5254

merged 1 commit into from Nov 16, 2020

Conversation

SpacePossum
Copy link
Contributor

@SpacePossum SpacePossum commented Nov 11, 2020

On master check phpdoc_to_param_type as well.

PhpdocToReturnTypeFixer could support:

            'skip mixed types' => [
                '<?php /** @return Foo|Bar */ function my_foo(): mixed {}',
                '<?php /** @return Foo|Bar */ function my_foo() {}',
            ],

through configuration if we want to

@SpacePossum SpacePossum added kind/enhancement topic/PHP8.0 Related to features available in PHP 8.0+ labels Nov 11, 2020
@SpacePossum SpacePossum added this to the 2.15.10 milestone Nov 11, 2020
@SpacePossum SpacePossum mentioned this pull request Nov 11, 2020
62 tasks
@SpacePossum SpacePossum added the RTM Ready To Merge label Nov 12, 2020
@SpacePossum SpacePossum merged commit 8cefe7e into PHP-CS-Fixer:2.15 Nov 16, 2020
@SpacePossum SpacePossum removed the RTM Ready To Merge label Nov 16, 2020
@SpacePossum SpacePossum deleted the 2_15_PHP_mixed_type_support branch November 16, 2020 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement topic/PHP8.0 Related to features available in PHP 8.0+
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant