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.21.0 Playground link
I took the code sample from https://stackoverflow.com/a/63649677/577052
Input: This works in PHP 8.2
<?php $arr = array(); ($recursive = function (&$argument) { global $recursive; if (count($argument) < 10) { $argument[] = 'foo'; $recursive($argument); } })($arr); print_r($arr);
Output: The pair of brackets is gone. Code does not work
<?php $arr = []; $recursive = function (&$argument) { global $recursive; if (count($argument) < 10) { $argument[] = 'foo'; $recursive($argument); } }($arr); print_r($arr);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
@prettier/plugin-php v0.21.0
Playground link
I took the code sample from https://stackoverflow.com/a/63649677/577052
Input:
This works in PHP 8.2
Output:
The pair of brackets is gone. Code does not work
The text was updated successfully, but these errors were encountered: