Skip to content

Commit

Permalink
Fix the rest of issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pkly committed Nov 7, 2023
1 parent e9e50c1 commit e373bdf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Interfaces/Type/CoercionServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ public function supports(
public function coerce(
string $propertyPath,
Property $property,
$value
mixed $value
): CoerceResult|null;
}
1 change: 1 addition & 0 deletions src/Service/Resolver/DtoTypeExtractorHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function extract(

foreach ($class->getAttributes() as $attribute) {
if (is_a($attribute->getName(), DtoAttributeInterface::class, true)) {
/** @phpstan-ignore-next-line */
$dto->addDtoAttribute($attribute->newInstance());
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Type/CoercerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function supports(
public function coerce(
string $propertyPath,
Property $property,
$value
mixed $value
): CoerceResult|null {
if (null === $value && !empty($property->getConstraints())) {
$violations = $this->validator->startContext()
Expand Down

0 comments on commit e373bdf

Please sign in to comment.