Skip to content

Commit bd70908

Browse files
author
Stanislav Idolov
committed
ENGCOM-1812: [Backport] Moved css from media #TODO #15724
1 parent 0543650 commit bd70908

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dev/tests/static/framework/Magento/Sniffs/Less/PropertiesSortingSniff.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
100100
*/
101101
private function validatePropertiesSorting(PHP_CodeSniffer_File $phpcsFile, $stackPtr, array $properties)
102102
{
103+
// Fix needed for cases when incorrect properties passed for validation due to bug in PHP tokens.
104+
$symbolsForSkip = ['(', 'block'];
105+
$properties = array_filter(
106+
$properties,
107+
function ($var) use ($symbolsForSkip) {
108+
return !in_array($var, $symbolsForSkip);
109+
}
110+
);
103111

104112
$originalProperties = $properties;
105113
sort($properties);

0 commit comments

Comments
 (0)