welcome back to dyb-tech
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the NelmioApiDocBundle package.
|
||||
*
|
||||
* (c) Nelmio
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Nelmio\ApiDocBundle\Exception;
|
||||
|
||||
class RenderInvalidArgumentException extends \InvalidArgumentException
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the NelmioApiDocBundle package.
|
||||
*
|
||||
* (c) Nelmio
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Nelmio\ApiDocBundle\Exception;
|
||||
|
||||
/**
|
||||
* @deprecated since 4.17, this exception is not used anymore
|
||||
*/
|
||||
class UndocumentedArrayItemsException extends \LogicException
|
||||
{
|
||||
private $class;
|
||||
private $path;
|
||||
|
||||
public function __construct(string $class = null, string $path = '')
|
||||
{
|
||||
$this->class = $class;
|
||||
$this->path = $path;
|
||||
|
||||
$propertyName = '';
|
||||
if (null !== $class) {
|
||||
$propertyName = $class.'::';
|
||||
}
|
||||
$propertyName .= $path;
|
||||
|
||||
parent::__construct(sprintf('Property "%s" is an array, but its items type isn\'t specified. You can specify that by using the type `string[]` for instance or `@OA\Property(type="array", @OA\Items(type="string"))`.', $propertyName));
|
||||
}
|
||||
|
||||
public function getClass()
|
||||
{
|
||||
return $this->class;
|
||||
}
|
||||
|
||||
public function getPath()
|
||||
{
|
||||
return $this->path;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user