From 8ccf67bcbef6f9d2d75869e9a3839089e89c59d8 Mon Sep 17 00:00:00 2001 From: Josh Oldenburg Date: Mon, 9 Dec 2019 12:52:03 -0500 Subject: [PATCH] Remove incorrect apostrophe in UseDeclarationSniff. --- src/Standards/PSR12/Sniffs/Traits/UseDeclarationSniff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Standards/PSR12/Sniffs/Traits/UseDeclarationSniff.php b/src/Standards/PSR12/Sniffs/Traits/UseDeclarationSniff.php index d40ea5cd20..876b56a1e8 100644 --- a/src/Standards/PSR12/Sniffs/Traits/UseDeclarationSniff.php +++ b/src/Standards/PSR12/Sniffs/Traits/UseDeclarationSniff.php @@ -141,7 +141,7 @@ public function process(File $phpcsFile, $stackPtr) // Make sure this use statement is not on the same line as the previous one. $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($useToken - 1), null, true); if ($prev !== false && $tokens[$prev]['line'] === $tokens[$useToken]['line']) { - $error = 'Each imported trait must be on it\'s own line'; + $error = 'Each imported trait must be on its own line'; $prevNonWs = $phpcsFile->findPrevious(T_WHITESPACE, ($useToken - 1), null, true); if ($prevNonWs !== $prev) { $phpcsFile->addError($error, $useToken, 'SpacingBeforeImport');