Skip to content

Commit

Permalink
Merge pull request #5173 from c4ll-m3-j4ck/patch-1
Browse files Browse the repository at this point in the history
BUGFIX: Improve output of `PropertyCannotBeSet` exception
  • Loading branch information
grebaldi authored Jul 8, 2024
2 parents e990f33 + 5da5c44 commit 38cdd4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private function validateProperties(?PropertyValuesToWrite $propertyValues, Node
if (!$propertyType->isMatchedBy($propertyValue)) {
throw PropertyCannotBeSet::becauseTheValueDoesNotMatchTheConfiguredType(
PropertyName::fromString($propertyName),
get_debug_type($propertyValues),
get_debug_type($propertyValue),
$propertyType->value
);
}
Expand Down

0 comments on commit 38cdd4c

Please sign in to comment.