From 25e7c292538ed08ada75051a5586b24ac466c90c Mon Sep 17 00:00:00 2001 From: Nikolai Poriadin Date: Mon, 13 Jan 2025 18:11:17 -0500 Subject: [PATCH] Fix solution text --- src/NotFoundException.php | 4 +--- tests/Unit/NotFoundExceptionTest.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/NotFoundException.php b/src/NotFoundException.php index 1ebcc482..8e61400f 100644 --- a/src/NotFoundException.php +++ b/src/NotFoundException.php @@ -53,15 +53,13 @@ public function getBuildStack(): array public function getName(): string { - return sprintf('No difinition or class found for "%s" ID.', $this->id); + return sprintf('No definition or class found for "%s" ID.', $this->id); } public function getSolution(): ?string { $solution = <<id); diff --git a/tests/Unit/NotFoundExceptionTest.php b/tests/Unit/NotFoundExceptionTest.php index 489cf222..b7cedb72 100644 --- a/tests/Unit/NotFoundExceptionTest.php +++ b/tests/Unit/NotFoundExceptionTest.php @@ -14,12 +14,10 @@ public function testGetId(): void $exception = new NotFoundException('test'); $this->assertSame('test', $exception->getId()); - $this->assertSame('No difinition or class found for "test" ID.', $exception->getName()); + $this->assertSame('No definition or class found for "test" ID.', $exception->getName()); $this->assertSame( <<getSolution() );