We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@prettier/plugin-php v0.19.2 Playground link
Input:
<?php var_dump((1 ? 2 : 3) ?: 4);
Output:
<?php var_dump(1 ? 2 : 3 ?: 4);
Leads to this syntax error in PHP 8.1:
Nested ternary expressions are deprecated since PHP 7.4
Note: It does work as expected when you don't make use of a shorthand ternary operator (?:).
?:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
@prettier/plugin-php v0.19.2
Playground link
Input:
Output:
Leads to this syntax error in PHP 8.1:
Note: It does work as expected when you don't make use of a shorthand ternary operator (
?:
).The text was updated successfully, but these errors were encountered: