Re: [RFC] Deprecate PHP's short open tags
| From: | Côme Chilliet | Date: | Mon, 25 Mar 2019 16:16:40 +0000 |
| Subject: | Re: [RFC] Deprecate PHP's short open tags | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-104943@lists.php.net to get a copy of this message | ||
Le lundi 25 mars 2019, 08:45:22 CET Thomas Hruska a écrit :
> If this moves forward, I, and many others, will demand a formal, fully
> supported utility for locating and automatically transforming all usages
> of short open tags on the system. That is, a scanner to locate every
> line of code that uses them with options to change the code
> automatically.
You can use the fixer "full_opening_tag" of php-cs-fixer:
https://cs.symfony.com/
There is also "no_short_echo_tag" if you want to replace "<?=" with
"<?php echo".
Côme