Skip to content

Commit

Permalink
fix stan issue related to Chronos
Browse files Browse the repository at this point in the history
  • Loading branch information
LordSimal committed Oct 16, 2023
1 parent d3cf7d6 commit 24e79f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Command/FixtureCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

use Bake\Utility\TableScanner;
use Brick\VarExporter\VarExporter;
use Cake\Chronos\Chronos;
use Cake\Chronos\ChronosDate;
use Cake\Console\Arguments;
use Cake\Console\ConsoleIo;
Expand Down Expand Up @@ -438,7 +437,7 @@ protected function _makeRecordString(array $records): string
{
foreach ($records as &$record) {
array_walk($record, function (&$value): void {
if ($value instanceof DateTimeInterface || $value instanceof Chronos) {
if ($value instanceof DateTimeInterface) {
$value = $value->format('Y-m-d H:i:s');
} elseif ($value instanceof ChronosDate) {
$value = $value->format('Y-m-d');
Expand Down

0 comments on commit 24e79f4

Please sign in to comment.