This commit is contained in:
Guilhem Niot 2020-11-20 17:10:21 +01:00
parent 0912c85a0d
commit 68bf1670f3
6 changed files with 4 additions and 8 deletions

View File

@ -16,7 +16,7 @@ class UndocumentedArrayItemsException extends \LogicException
private $class;
private $path;
public function __construct(string $class = null, string $path = "")
public function __construct(string $class = null, string $path = '')
{
$this->class = $class;
$this->path = $path;

View File

@ -152,7 +152,7 @@ class ObjectModelDescriber implements ModelDescriberInterface, ModelRegistryAwar
throw $e; // This exception is already complete
}
throw new UndocumentedArrayItemsException($model->getType()->getClassName(), sprintf("%s%s", $propertyName, $e->getPath()));
throw new UndocumentedArrayItemsException($model->getType()->getClassName(), sprintf('%s%s', $propertyName, $e->getPath()));
}
return;

View File

@ -51,7 +51,7 @@ class ArrayPropertyDescriber implements PropertyDescriberInterface, ModelRegistr
throw $e; // This exception is already complete
}
throw new UndocumentedArrayItemsException(null, sprintf("%s[]", $e->getPath()));
throw new UndocumentedArrayItemsException(null, sprintf('%s[]', $e->getPath()));
}
break;

View File

@ -11,8 +11,6 @@
namespace Nelmio\ApiDocBundle\Tests\Functional\Entity\ArrayItemsError;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @author Guilhem N. <guilhem@gniot.fr>
*/

View File

@ -11,8 +11,6 @@
namespace Nelmio\ApiDocBundle\Tests\Functional\Entity\ArrayItemsError;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @author Guilhem N. <guilhem@gniot.fr>
*/