diff --git a/UPGRADE-5.0.md b/UPGRADE-5.0.md index 4cbf26328..789626344 100644 --- a/UPGRADE-5.0.md +++ b/UPGRADE-5.0.md @@ -48,4 +48,6 @@ This parameter was deprecated since `4.25.2` ## BC BREAK: Removed `Nelmio\ApiDocBundle\Form\Extension::getExtendedType()` -## BC BREAK: Removed `null` as a possible type for parameter `$options` in `Nelmio\ApiDocBundle\Model\Model::__construct()` & `Nelmio\ApiDocBundle\Attribute\Model::__construct()` \ No newline at end of file +## BC BREAK: Removed `null` as a possible type for parameter `$options` in `Nelmio\ApiDocBundle\Model\Model::__construct()` & `Nelmio\ApiDocBundle\Attribute\Model::__construct()` + +## BC BREAK: Removed `Nelmio\ApiDocBundle\Exception\UndocumentedArrayItemsException` \ No newline at end of file diff --git a/src/Exception/UndocumentedArrayItemsException.php b/src/Exception/UndocumentedArrayItemsException.php deleted file mode 100644 index f6cee4224..000000000 --- a/src/Exception/UndocumentedArrayItemsException.php +++ /dev/null @@ -1,58 +0,0 @@ -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", new OA\Items(type="string"))]`.', $propertyName)); - } - - /** - * @return string|null - */ - public function getClass() - { - return $this->class; - } - - /** - * @return string - */ - public function getPath() - { - return $this->path; - } -}