Skip to content

Commit

Permalink
Write the property name
Browse files Browse the repository at this point in the history
  • Loading branch information
sergix44 committed Jan 7, 2024
1 parent c709192 commit e0e7e75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Resolver/EnumOrScalar.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public function resolve(string $propertyName, array $propertyTypes, array $data)

throw new UnsupportedPropertyTypeException(
sprintf(
'This property can be %s or %s, %s given.',
'The property "%s" can only be %s or %s, %s given.',
$propertyName,
$enumClass,
implode(' or ', $propertyTypes),
$valueType
Expand Down

0 comments on commit e0e7e75

Please sign in to comment.