Skip to content

Commit d43d2d4

Browse files
committed
Rejeita strings inválidas em ptDate2IsoDate
1 parent d9f271c commit d43d2d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public static function ptDate2IsoDate($date)
171171
$fDate = explode('/', $date);
172172

173173
if (count($fDate) < 3) {
174-
$fDate = $date;
174+
return null;
175175
} else {
176176
if (strlen($fDate[2])<4) {
177177
if (intval($fDate[2])>30) {

0 commit comments

Comments
 (0)