Skip to content

Commit

Permalink
Fix typo in exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
jslmorrison authored and kukulich committed Jan 9, 2023
1 parent ff6072c commit ed5b2aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function process(File $phpcsFile, $attributeOpenerPointer): void
}

if ($this->order === [] && !$this->orderAlphabetically) {
throw new UnexpectedValueException('Nether manual or alphabetical order is set.');
throw new UnexpectedValueException('Neither manual or alphabetical order is set.');
}

if ($this->order !== [] && $this->orderAlphabetically) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/Attributes/AttributesOrderSniffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function testOrderAlphabeticallyErrors(): void
public function testNetherOrderIsSet(): void
{
$this->expectException(UnexpectedValueException::class);
$this->expectExceptionMessage('Nether manual or alphabetical order is set.');
$this->expectExceptionMessage('Neither manual or alphabetical order is set.');

self::checkFile(__DIR__ . '/data/attributesOrderNoErrors.php');
}
Expand Down

0 comments on commit ed5b2aa

Please sign in to comment.