Closed
Description
Preconditions
- magento/magento-coding-standard v9
- A magento module that has an xml file that starts with
<?xml version="1.0" ?>
Steps to reproduce
- run
bin/phpcs ./ --standard=Magento2 --severity=10
Expected result
- Nothing module passes the test
Actual result
FILE: /opt/atlassian/pipelines/agent/build/etc/module.xml
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
1 | ERROR | PHP syntax error: syntax error, unexpected 'version'
| | (T_STRING)
----------------------------------------------------------------------
FILE: /opt/atlassian/pipelines/agent/build/etc/di.xml
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
1 | ERROR | PHP syntax error: syntax error, unexpected 'version'
| | (T_STRING)
----------------------------------------------------------------------
This bug got introduced in v9 because our pipelines were running v8 yesterday and didn't have this issue at the time.