Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 25572ed

Browse files
author
Mateusz Gostański
committed
Bug fixed in StraightKeyParser
1 parent f7cbd97 commit 25572ed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Data/StraightKeyParser.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ public function parse(Collection $inputData): Collection
2121
}
2222

2323
foreach ($data as $key => $value) {
24-
if (Carbon::createFromTimeString($value) == true) {
25-
$data[$key] = Carbon::createFromTimeString($value);
24+
try {
25+
if (Carbon::createFromTimeString($value) == true) {
26+
$data[$key] = Carbon::createFromTimeString($value);
27+
}
28+
} catch (\Exception $exception) {
29+
continue;
2630
}
2731
}
2832

0 commit comments

Comments
 (0)