From 1cf15cea5a7f2c1e8167a00fb63d89a6727114e5 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Wed, 2 Nov 2022 21:49:20 +0100 Subject: [PATCH] Universal/OneStatementInShortEchoTag: improve error code As the name of the sniff is `OneStatementInShortEchoTag`, "Found" would imply that one statement was found, while in actual fact the sniff throws an error when _multiple_ statements are found. --- Universal/Sniffs/PHP/OneStatementInShortEchoTagSniff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Universal/Sniffs/PHP/OneStatementInShortEchoTagSniff.php b/Universal/Sniffs/PHP/OneStatementInShortEchoTagSniff.php index 399213ca..7a4a3be3 100644 --- a/Universal/Sniffs/PHP/OneStatementInShortEchoTagSniff.php +++ b/Universal/Sniffs/PHP/OneStatementInShortEchoTagSniff.php @@ -75,7 +75,7 @@ public function process(File $phpcsFile, $stackPtr) 'Only one statement is allowed when using short open echo PHP tags.' . ' Use the "