Skip to content

Commit 3f57919

Browse files
authored
Support Enums in ValueFormatter.php
1 parent f79dfb7 commit 3f57919

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Quote/ValueFormatter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public static function formatValue($value, bool $addQuotes = true)
4242
return $value->getValue();
4343
}
4444

45+
if (is_object($value) && property_exists($value, 'value')) {
46+
return $value->value;
47+
}
48+
4549
if (is_object($value) && is_callable([$value, '__toString'])) {
4650
$value = (string) $value;
4751
}

0 commit comments

Comments
 (0)