diff --git a/Describer/RouteDescriber.php b/Describer/RouteDescriber.php index b0cc7d0..aefc63d 100644 --- a/Describer/RouteDescriber.php +++ b/Describer/RouteDescriber.php @@ -53,7 +53,7 @@ final class RouteDescriber implements DescriberInterface, ModelRegistryAwareInte // if able to resolve the controller $controller = $route->getDefault('_controller'); if ($method = $this->controllerReflector->getReflectionMethod($controller)) { - // Extract as many informations as possible about this route + // Extract as many information as possible about this route foreach ($this->routeDescribers as $describer) { if ($describer instanceof ModelRegistryAwareInterface) { $describer->setModelRegistry($this->modelRegistry); diff --git a/SwaggerPhp/ModelRegister.php b/SwaggerPhp/ModelRegister.php index c34a59b..2c9c327 100644 --- a/SwaggerPhp/ModelRegister.php +++ b/SwaggerPhp/ModelRegister.php @@ -86,7 +86,7 @@ final class ModelRegister } if ($annotation instanceof Schema) { - @trigger_error(sprintf('Using `@Model` implicitely in a `@SWG\Schema`, `@SWG\Items` or `@SWG\Property` annotation in %s is deprecated since version 3.2 and won\'t be supported in 4.0. Use `ref=@Model()` instead.', $annotation->_context->getDebugLocation()), E_USER_DEPRECATED); + @trigger_error(sprintf('Using `@Model` implicitly in a `@SWG\Schema`, `@SWG\Items` or `@SWG\Property` annotation in %s is deprecated since version 3.2 and won\'t be supported in 4.0. Use `ref=@Model()` instead.', $annotation->_context->getDebugLocation()), E_USER_DEPRECATED); } $annotation->merge([new $annotationClass([ diff --git a/Tests/Swagger/ModelRegisterTest.php b/Tests/Swagger/ModelRegisterTest.php index 42b476d..66ef80b 100644 --- a/Tests/Swagger/ModelRegisterTest.php +++ b/Tests/Swagger/ModelRegisterTest.php @@ -27,7 +27,7 @@ class ModelRegisterTest extends TestCase { /** * @group legacy - * @expectedDeprecation Using `@Model` implicitely in a `@SWG\Schema`, `@SWG\Items` or `@SWG\Property` annotation in %s. Use `ref=@Model()` instead. + * @expectedDeprecation Using `@Model` implicitly in a `@SWG\Schema`, `@SWG\Items` or `@SWG\Property` annotation in %s. Use `ref=@Model()` instead. */ public function testDeprecatedImplicitUseOfModel() {