Skip to content

Commit 08e44b1

Browse files
Remove toStringFormat handling for Carbon 2 (#201)
1 parent 3fb59cd commit 08e44b1

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/Generator.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -493,15 +493,6 @@ protected function getToStringFormat(): ?string
493493
{
494494
$reflection = new ReflectionClass($date = Date::now());
495495

496-
// Carbon 2.x
497-
if ($reflection->hasProperty('toStringFormat')) {
498-
$format = $reflection->getProperty('toStringFormat');
499-
$format->setAccessible(true);
500-
501-
return $format->getValue();
502-
}
503-
504-
// Carbon 3.x
505496
$factory = $reflection->getMethod('getFactory');
506497
$factory->setAccessible(true);
507498

0 commit comments

Comments
 (0)