diff --git a/src/Request/Executor.php b/src/Request/Executor.php index 69d6bc7e4..b4464a5e6 100644 --- a/src/Request/Executor.php +++ b/src/Request/Executor.php @@ -76,7 +76,7 @@ public function addSchema(string $name, Schema $schema): self public function getSchema(?string $name = null): Schema { if (empty($this->schemas)) { - throw new RuntimeException('At least one schema should be declare.'); + throw new RuntimeException('At least one schema should be declared.'); } if (null === $name) { diff --git a/tests/Request/ExecutorTest.php b/tests/Request/ExecutorTest.php index 4918b130a..b1953d03d 100644 --- a/tests/Request/ExecutorTest.php +++ b/tests/Request/ExecutorTest.php @@ -26,7 +26,7 @@ protected function getMockedExecutor(): RequestExecutor public function testGetSchemaNoSchemaFound(): void { $this->expectException(RuntimeException::class); - $this->expectExceptionMessage('At least one schema should be declare.'); + $this->expectExceptionMessage('At least one schema should be declared.'); $this->getMockedExecutor()->getSchema('fake'); }