PHP short echo is an anti-pattern and should be removed #14111
Labels
Issue: Format is not valid
Gate 1 Failed. Automatic verification of issue format is failed
non-issue
The PHP short echo used widely in PHTML templates cannot be commented out easily:
You must star comment the entire declaration, which is tedious:
And also breaks another necessary commenting use case:
The PHP short echo should have been considered an anti-pattern because it restricts commenting, which is a hallmark of good code.
The standard echo is far more flexible and barely more verbose:
The text was updated successfully, but these errors were encountered: