Skip to content

Commit 250a326

Browse files
committed
chore: rename property
1 parent e36cb62 commit 250a326

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Standards/Squiz/Sniffs/Arrays/ArrayDeclarationSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class ArrayDeclarationSniff implements Sniff
1717
{
18-
public bool $alignDoubleArrowToLongestElement = true;
18+
public bool $alignDoubleArrowToLongestIndex = true;
1919

2020
/**
2121
* Returns an array of tokens this test wants to listen for.
@@ -825,7 +825,7 @@ public function processMultiLineArray($phpcsFile, $stackPtr, $arrayStart, $array
825825

826826
$arrowStart = ($tokens[$indexPointer]['column'] + $index['index_length'] + 1);
827827

828-
if ($this->alignDoubleArrowToLongestElement) {
828+
if ($this->alignDoubleArrowToLongestIndex) {
829829
$arrowStart = ($tokens[$indexPointer]['column'] + $maxLength + 1);
830830
}
831831

0 commit comments

Comments
 (0)