Skip to content

Commit

Permalink
Fix exception message (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz authored Aug 22, 2024
1 parent 54f6b6b commit 512db03
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 @@ -20,7 +20,7 @@ public function canInitialize(BootloaderInterface|string $bootloader, ?BootloadC
}

if (!\class_exists($bootloader)) {
throw new ClassNotFoundException(\sprintf('Bootloader class `%s` is not exist.', $bootloader));
throw new ClassNotFoundException(\sprintf('Bootloader class `%s` does not exist.', $bootloader));
}

return true;
Expand Down
2 changes: 1 addition & 1 deletion src/Boot/tests/BootloadManager/BootloadersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function boot(BinderInterface $binder): void
public function testException(): void
{
$this->expectException(\Spiral\Boot\Exception\ClassNotFoundException::class);
$this->expectExceptionMessage('Bootloader class `Foo\Bar\Invalid` is not exist.');
$this->expectExceptionMessage('Bootloader class `Foo\Bar\Invalid` does not exist.');

$bootloader = $this->getBootloadManager();
$bootloader->bootload(['Foo\Bar\Invalid']);
Expand Down

0 comments on commit 512db03

Please sign in to comment.