From 8f43de555b5156cc3ee6a28427b675c7c927ce54 Mon Sep 17 00:00:00 2001 From: Djordy Koert Date: Wed, 19 Jun 2024 15:01:56 +0200 Subject: [PATCH] fix(#2300): fix missing context param UuidPropertyDescriber::describe() (#2302) | Q | A | |---------------|---------------------------------------------------------------------------------------------------------------------------| | Bug fix? | yes | | New feature? | yes/no | | Deprecations? | yes/no | | Issues | Fix #2300 | Fixes deprecation warning from missing `context` parameter on `UuidPropertyDescriber::describe()` --- src/PropertyDescriber/UuidPropertyDescriber.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/PropertyDescriber/UuidPropertyDescriber.php b/src/PropertyDescriber/UuidPropertyDescriber.php index 865124f4f..843d4ef63 100644 --- a/src/PropertyDescriber/UuidPropertyDescriber.php +++ b/src/PropertyDescriber/UuidPropertyDescriber.php @@ -17,7 +17,10 @@ final class UuidPropertyDescriber implements PropertyDescriberInterface { - public function describe(array $types, OA\Schema $property, ?array $groups = null, ?OA\Schema $schema = null) + /** + * @param array $context Context options for describing the property + */ + public function describe(array $types, OA\Schema $property, ?array $groups = null, ?OA\Schema $schema = null, array $context = []) { $property->type = 'string'; $property->format = 'uuid';