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
An imported or required file returning a callable value cannot be immediately invoked as Prettier is stripping the surrounding parentheses.
(The below example assumes file.php contains e.g. <?php return function() { echo 'Hello world'; };)
file.php
<?php return function() { echo 'Hello world'; };
@prettier/plugin-php v0.22.2 Playground link
Input:
<?php (include 'file.php')(); (require 'file.php')();
Output:
<?php include "file.php"(); require "file.php"();
Expected behavior:
The text was updated successfully, but these errors were encountered:
Possibly related to #2409
Sorry, something went wrong.
No branches or pull requests
An imported or required file returning a callable value cannot be immediately invoked as Prettier is stripping the surrounding parentheses.
(The below example assumes
file.php
contains e.g.<?php return function() { echo 'Hello world'; };
)@prettier/plugin-php v0.22.2
Playground link
Input:
Output:
Expected behavior:
The text was updated successfully, but these errors were encountered: