Skip to content

Commit 79ae03a

Browse files
committed
SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly: Make configuration extendable
1 parent 75c4378 commit 79ae03a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SlevomatCodingStandard/Sniffs/Namespaces/ReferenceUsedNamesOnlySniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ private function getUseStatementPlacePointer(File $phpcsFile, int $openTagPointe
599599

600600
private function isRequiredToBeUsed(string $name): bool
601601
{
602-
if (count($this->namespacesRequiredToUse) === 0) {
602+
if ($this->namespacesRequiredToUse === null || $this->namespacesRequiredToUse === []) {
603603
return true;
604604
}
605605

0 commit comments

Comments
 (0)