From dc7399c41d324e95c08253c7e80218e9f6560f01 Mon Sep 17 00:00:00 2001 From: Fabien Salathe Date: Thu, 28 May 2020 19:19:43 +0200 Subject: [PATCH] Fix undefined function in OA\Schema (#1629) `$property->getTitle()` should be `$property->title` --- PropertyDescriber/ArrayPropertyDescriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PropertyDescriber/ArrayPropertyDescriber.php b/PropertyDescriber/ArrayPropertyDescriber.php index 0608404..be54702 100644 --- a/PropertyDescriber/ArrayPropertyDescriber.php +++ b/PropertyDescriber/ArrayPropertyDescriber.php @@ -33,7 +33,7 @@ class ArrayPropertyDescriber implements PropertyDescriberInterface, ModelRegistr { $type = $type->getCollectionValueType(); if (null === $type) { - throw new \LogicException(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 `@SWG\Property(type="array", @SWG\Items(type="string"))`.', $property->getTitle())); + throw new \LogicException(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 `@SWG\Property(type="array", @SWG\Items(type="string"))`.', $property->title)); } $property->type = 'array';