format/tags/echo-syntax
Not in any preset. Safe fix.
What it does
Replaces short-echo <?= with long format <?php echo/<?php print syntax, or vice-versa.
Configuration
[format.rules]
"tags/echo-syntax" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
format |
enum |
long, short |
"long" |
format |
long-function |
enum |
echo, print |
"echo" |
long_function |
shorten-simple-statements-only |
bool |
Any | true |
shorten_simple_statements_only |
Replaces
echo_tag_syntax(php-cs-fixer)