Skip to content

Commit 1153ab2

Browse files
committed
AC-943: Create unit test for Magento2\Less\ColourDefinitionSniff check
1 parent 0b6fe4b commit 1153ab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Magento2/Sniffs/Less/ColourDefinitionSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function process(File $phpcsFile, $stackPtr)
4242

4343
$variablePtr = $phpcsFile->findPrevious(T_ASPERAND, $stackPtr);
4444
if ((false === $variablePtr) || ($tokens[$stackPtr]['line'] !== $tokens[$variablePtr]['line'])) {
45-
$phpcsFile->addError('Hexadecimal value should be get from a variable', $stackPtr, 'NotInVariable');
45+
$phpcsFile->addError('A variable should be used for a CSS colour', $stackPtr, 'NotInVariable');
4646
}
4747

4848
$expected = strtolower($colour);

0 commit comments

Comments
 (0)