Package contains data patch \VendorName\ModuleName\Setup\Patch\Data\InstallData (exact nature of data patch irrelevant)
Steps to reproduce
Run the coding standard against the file Setup/Patch/Data/InstallData.php
Expected result
Sniff Magento2.Legacy.InstallUpgrade.ObsoleteInstallDataScript to not be triggered by the presence of a data patch named InstallData, as it is not a Setup/InstallData.php script.
Actual result
Data patch fails due to Magento2.Legacy.InstallUpgrade.ObsoleteInstallDataScript sniff.
Misc Notes:
Possible to disable failure with phpcs:ignore Magento2.Legacy.InstallUpgrade.ObsoleteInstallDataScript annotation within the file. Line must be present on line 1, after the opening PHP tag.
Preconditions
\VendorName\ModuleName\Setup\Patch\Data\InstallData
(exact nature of data patch irrelevant)Steps to reproduce
Setup/Patch/Data/InstallData.php
Expected result
Magento2.Legacy.InstallUpgrade.ObsoleteInstallDataScript
to not be triggered by the presence of a data patch namedInstallData
, as it is not aSetup/InstallData.php
script.Actual result
Magento2.Legacy.InstallUpgrade.ObsoleteInstallDataScript
sniff.Misc Notes:
phpcs:ignore Magento2.Legacy.InstallUpgrade.ObsoleteInstallDataScript
annotation within the file. Line must be present on line 1, after the opening PHP tag.