|
26 | 26 | * of swagger Annotation classes with the following convenience methods |
27 | 27 | * to get or create the respective Annotation instances if not found |
28 | 28 | * |
29 | | - * @see \Nelmio\ApiDocBundle\OpenApiPhp\Util::getPath() |
30 | | - * @see \Nelmio\ApiDocBundle\OpenApiPhp\Util::getSchema() |
31 | | - * @see \Nelmio\ApiDocBundle\OpenApiPhp\Util::getProperty() |
32 | | - * @see \Nelmio\ApiDocBundle\OpenApiPhp\Util::getOperation() |
33 | | - * @see \Nelmio\ApiDocBundle\OpenApiPhp\Util::getOperationParameter() |
| 29 | + * @see Util::getPath() |
| 30 | + * @see Util::getSchema() |
| 31 | + * @see Util::getProperty() |
| 32 | + * @see Util::getOperation() |
| 33 | + * @see Util::getOperationParameter() |
34 | 34 | * |
35 | 35 | * which in turn get or create the Annotation instances through the following more general methods |
36 | | - * @see \Nelmio\ApiDocBundle\OpenApiPhp\Util::getChild() |
37 | | - * @see \Nelmio\ApiDocBundle\OpenApiPhp\Util::getCollectionItem() |
38 | | - * @see \Nelmio\ApiDocBundle\OpenApiPhp\Util::getIndexedCollectionItem() |
| 36 | + * @see Util::getChild() |
| 37 | + * @see Util::getCollectionItem() |
| 38 | + * @see Util::getIndexedCollectionItem() |
39 | 39 | * |
40 | 40 | * which then searches for an existing Annotation through |
41 | | - * @see \Nelmio\ApiDocBundle\OpenApiPhp\Util::searchCollectionItem() |
42 | | - * @see \Nelmio\ApiDocBundle\OpenApiPhp\Util::searchIndexedCollectionItem() |
| 41 | + * @see Util::searchCollectionItem() |
| 42 | + * @see Util::searchIndexedCollectionItem() |
43 | 43 | * |
44 | 44 | * and if not found the Annotation creates it through |
45 | | - * @see \Nelmio\ApiDocBundle\OpenApiPhp\Util::createCollectionItem() |
46 | | - * @see \Nelmio\ApiDocBundle\OpenApiPhp\Util::createContext() |
| 45 | + * @see Util::createCollectionItem() |
| 46 | + * @see Util::createContext() |
47 | 47 | * |
48 | 48 | * The merge method @see \Nelmio\ApiDocBundle\OpenApiPhp\Util::merge() has the main purpose to be able |
49 | 49 | * to merge properties from an deeply nested array of Annotation properties in the structure of a |
@@ -617,7 +617,7 @@ private static function mergeProperty(OA\AbstractAnnotation $annotation, string |
617 | 617 | */ |
618 | 618 | private static function getNestingIndexes(string $class): array |
619 | 619 | { |
620 | | - return array_map(function ($property) { |
| 620 | + return array_map(static function ($property) { |
621 | 621 | return \is_array($property) ? $property[0] : $property; |
622 | 622 | }, $class::$_nested); |
623 | 623 | } |
|
0 commit comments