Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Oct 31, 2024
1 parent 5b8e8bf commit 23d9d1f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
9 changes: 7 additions & 2 deletions src/TypeConverter/ArrayAccessTypeConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions src/TypeConverter/ArrayTypeConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/TypeConverter/ObjectTypeConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 3 additions & 5 deletions src/TypeConverter/TimestampTypeConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

/**
* @since 3.1.0
*
* @psalm-suppress MissingConstructor
*/
final class TimestampTypeConverter implements TypeConverterInterface, AnnotationReaderAwareInterface
{
Expand All @@ -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;
Expand Down

0 comments on commit 23d9d1f

Please sign in to comment.