mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Fix typos
This commit is contained in:
parent
2b006dab84
commit
3b6fbf936d
@ -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);
|
||||
|
@ -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([
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user