Skip to content

Commit 2b09ef6

Browse files
committed
MAGETWO-69964: PHPCS cannot parse correctly syntax of PHP 7.x return types
1 parent c13c01c commit 2b09ef6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev/tests/static/framework/Magento/Sniffs/EchoTags/ShortEchoSyntaxSniff.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public function process(File $phpcsFile, $stackPtr)
3636
if ($tokens[$nextToken]['code'] == T_ECHO) {
3737
$phpcsFile->addError(
3838
'Short echo tag syntax must be used; expected "<?=" but found "<?php echo"',
39-
$stackPtr
39+
$stackPtr,
40+
'ShortEchoTag'
4041
);
4142
}
4243
}

0 commit comments

Comments
 (0)