Skip to content

Commit

Permalink
add proxy methods to EnumReflectionProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
yunicot committed Mar 10, 2024
1 parent b6fd1f1 commit eab32c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Persistence/Reflection/EnumReflectionProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,14 @@ private function toEnum($value)

return $this->enumType::from($value);
}

public function getModifiers(): int

Check failure on line 152 in src/Persistence/Reflection/EnumReflectionProperty.php

View workflow job for this annotation

GitHub Actions / Static Analysis / Psalm (8.2)

MissingImmutableAnnotation

src/Persistence/Reflection/EnumReflectionProperty.php:152:5: MissingImmutableAnnotation: ReflectionProperty::getModifiers is marked @psalm-immutable, but Doctrine\Persistence\Reflection\EnumReflectionProperty::getModifiers is not marked @psalm-immutable (see https://psalm.dev/213)
{
return $this->originalReflectionProperty->getModifiers();
}

Check warning on line 155 in src/Persistence/Reflection/EnumReflectionProperty.php

View check run for this annotation

Codecov / codecov/patch

src/Persistence/Reflection/EnumReflectionProperty.php#L152-L155

Added lines #L152 - L155 were not covered by tests

public function getDocComment(): string|false

Check failure on line 157 in src/Persistence/Reflection/EnumReflectionProperty.php

View workflow job for this annotation

GitHub Actions / Static Analysis / Psalm (8.2)

MissingImmutableAnnotation

src/Persistence/Reflection/EnumReflectionProperty.php:157:5: MissingImmutableAnnotation: ReflectionProperty::getDocComment is marked @psalm-immutable, but Doctrine\Persistence\Reflection\EnumReflectionProperty::getDocComment is not marked @psalm-immutable (see https://psalm.dev/213)
{
return $this->originalReflectionProperty->getDocComment();
}

Check warning on line 160 in src/Persistence/Reflection/EnumReflectionProperty.php

View check run for this annotation

Codecov / codecov/patch

src/Persistence/Reflection/EnumReflectionProperty.php#L157-L160

Added lines #L157 - L160 were not covered by tests
}

0 comments on commit eab32c5

Please sign in to comment.