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

no_useless_concat_operator should work with heredoc/nowdoc too #7662

Open
mvorisek opened this issue Jan 2, 2024 · 2 comments
Open

no_useless_concat_operator should work with heredoc/nowdoc too #7662

mvorisek opened this issue Jan 2, 2024 · 2 comments

Comments

@mvorisek
Copy link
Contributor

mvorisek commented Jan 2, 2024

Feature request

Expected output:

-$a = 'test' . <<<'EOD'
-2
+$a = <<<'EOD'
+test2
 EOD;

single quoted string is basically nowdoc, double quoted heredoc

@mvorisek
Copy link
Contributor Author

also it should remove empty string even if the syntax is different, example:

$a = "" . 'foo';
$a = 'foo';

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants