diff --git a/src/Context.php b/src/Context.php index 63fcfb6f4..ca8472966 100644 --- a/src/Context.php +++ b/src/Context.php @@ -241,9 +241,6 @@ public function getMetadataStack(): \SplStack return $this->metadataStack; } - /** - * @return array - */ public function getCurrentPath(): array { if (!$this->metadataStack) { diff --git a/src/EventDispatcher/PreSerializeEvent.php b/src/EventDispatcher/PreSerializeEvent.php index 2e9a575f5..38f15fce6 100644 --- a/src/EventDispatcher/PreSerializeEvent.php +++ b/src/EventDispatcher/PreSerializeEvent.php @@ -6,9 +6,6 @@ class PreSerializeEvent extends ObjectEvent { - /** - * @param array $params - */ public function setType(string $typeName, array $params = []): void { $this->type = ['name' => $typeName, 'params' => $params]; diff --git a/src/Handler/DateHandler.php b/src/Handler/DateHandler.php index ada72f76b..bc8fe94a6 100644 --- a/src/Handler/DateHandler.php +++ b/src/Handler/DateHandler.php @@ -279,9 +279,6 @@ private function parseDateInterval(string $data): \DateInterval return $dateInterval; } - /** - * @param array $type - */ private function getDeserializationFormats(array $type): array { if (isset($type['params'][2])) { @@ -291,9 +288,6 @@ private function getDeserializationFormats(array $type): array return [$this->getFormat($type)]; } - /** - * @param array $type - */ private function getFormat(array $type): string { return $type['params'][0] ?? $this->defaultFormat; diff --git a/src/Handler/FormErrorHandler.php b/src/Handler/FormErrorHandler.php index 6951f3292..c794e2b2f 100644 --- a/src/Handler/FormErrorHandler.php +++ b/src/Handler/FormErrorHandler.php @@ -71,9 +71,6 @@ public function __construct(?object $translator = null, string $translationDomai $this->translationDomain = $translationDomain; } - /** - * @param array $type - */ public function serializeFormToXml(XmlSerializationVisitor $visitor, FormInterface $form, array $type): \DOMElement { $formNode = $visitor->getDocument()->createElement('form'); @@ -98,25 +95,16 @@ public function serializeFormToXml(XmlSerializationVisitor $visitor, FormInterfa return $formNode; } - /** - * @param array $type - */ public function serializeFormToJson(SerializationVisitorInterface $visitor, FormInterface $form, array $type): \ArrayObject { return $this->convertFormToArray($visitor, $form); } - /** - * @param array $type - */ public function serializeFormErrorToXml(XmlSerializationVisitor $visitor, FormError $formError, array $type): \DOMCdataSection { return $visitor->getDocument()->createCDATASection($this->getErrorMessage($formError)); } - /** - * @param array $type - */ public function serializeFormErrorToJson(SerializationVisitorInterface $visitor, FormError $formError, array $type): string { return $this->getErrorMessage($formError); diff --git a/tests/Fixtures/ObjectWithInlineArray.php b/tests/Fixtures/ObjectWithInlineArray.php index 83b236e7c..cfa3b89e7 100644 --- a/tests/Fixtures/ObjectWithInlineArray.php +++ b/tests/Fixtures/ObjectWithInlineArray.php @@ -16,9 +16,6 @@ final class ObjectWithInlineArray #[Serializer\Type(name: 'array')] public $array; - /** - * @param array $array - */ public function __construct(array $array) { $this->array = $array;