We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8abe28 commit 0e51ba0Copy full SHA for 0e51ba0
1 file changed
src/Schema/AbstractSchemaInnerParse.php
@@ -127,7 +127,7 @@ final protected function getDataType(mixed $input): string
127
final protected function varExport(mixed $input): string
128
{
129
if ($input instanceof \DateTimeInterface) {
130
- return 'new \DateTimeImmutable(\''.$input->format('c').'\')';
+ return 'new \\'.$input::class.'(\''.$input->format('c').'\')';
131
}
132
133
if ($input instanceof \BackedEnum) {
0 commit comments