diff --git a/src/TypeConverter/ArrayAccessTypeConverter.php b/src/TypeConverter/ArrayAccessTypeConverter.php index 34c29a4..2efe008 100644 --- a/src/TypeConverter/ArrayAccessTypeConverter.php +++ b/src/TypeConverter/ArrayAccessTypeConverter.php @@ -38,15 +38,20 @@ /** * @since 3.1.0 - * - * @psalm-suppress MissingConstructor */ final class ArrayAccessTypeConverter implements TypeConverterInterface, AnnotationReaderAwareInterface, HydratorAwareInterface { + /** + * @psalm-suppress PropertyNotSetInConstructor + */ private AnnotationReaderInterface $annotationReader; + + /** + * @psalm-suppress PropertyNotSetInConstructor + */ private HydratorInterface $hydrator; public function setAnnotationReader(AnnotationReaderInterface $annotationReader): void diff --git a/src/TypeConverter/ArrayTypeConverter.php b/src/TypeConverter/ArrayTypeConverter.php index 205ad1d..bfad020 100644 --- a/src/TypeConverter/ArrayTypeConverter.php +++ b/src/TypeConverter/ArrayTypeConverter.php @@ -32,15 +32,20 @@ /** * @since 3.1.0 - * - * @psalm-suppress MissingConstructor */ final class ArrayTypeConverter implements TypeConverterInterface, AnnotationReaderAwareInterface, HydratorAwareInterface { + /** + * @psalm-suppress PropertyNotSetInConstructor + */ private AnnotationReaderInterface $annotationReader; + + /** + * @psalm-suppress PropertyNotSetInConstructor + */ private HydratorInterface $hydrator; public function setAnnotationReader(AnnotationReaderInterface $annotationReader): void diff --git a/src/TypeConverter/ObjectTypeConverter.php b/src/TypeConverter/ObjectTypeConverter.php index f0f9090..8688b38 100644 --- a/src/TypeConverter/ObjectTypeConverter.php +++ b/src/TypeConverter/ObjectTypeConverter.php @@ -28,11 +28,12 @@ /** * @since 3.1.0 - * - * @psalm-suppress MissingConstructor */ final class ObjectTypeConverter implements TypeConverterInterface, HydratorAwareInterface { + /** + * @psalm-suppress PropertyNotSetInConstructor + */ private HydratorInterface $hydrator; public function setHydrator(HydratorInterface $hydrator): void diff --git a/src/TypeConverter/TimestampTypeConverter.php b/src/TypeConverter/TimestampTypeConverter.php index 4a3d1f9..78729d1 100644 --- a/src/TypeConverter/TimestampTypeConverter.php +++ b/src/TypeConverter/TimestampTypeConverter.php @@ -39,8 +39,6 @@ /** * @since 3.1.0 - * - * @psalm-suppress MissingConstructor */ final class TimestampTypeConverter implements TypeConverterInterface, AnnotationReaderAwareInterface { @@ -51,11 +49,11 @@ final class TimestampTypeConverter implements TypeConverterInterface, Annotation */ public const DEFAULT_FORMAT = DateTimeInterface::RFC3339_EXTENDED; - private AnnotationReaderInterface $annotationReader; - /** - * @inheritDoc + * @psalm-suppress PropertyNotSetInConstructor */ + private AnnotationReaderInterface $annotationReader; + public function setAnnotationReader(AnnotationReaderInterface $annotationReader): void { $this->annotationReader = $annotationReader;