Skip to content

Static content deployment breaking template files in vendor #18048

@kamilszewczyk

Description

@kamilszewczyk

Preconditions

  1. Magento 2.2.5

Steps to reproduce

  1. A module installed in vendor with a template file with a content
    <script src="//test.js/<?php echo $block->getParam() ?>/<?php echo $block->getParam() ?>"></script><script>runFunction(1, 2);</script>
  2. Run setup:static-content:deploy command
  3. Check content of the phtml file

Expected result

  1. A correct phtml file (not modified)

Actual result

  1. Modified and broken phtml file

Changing the <?php echo syntax to <?= fixes the issue but I don't think it's a desired behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions