Skip to content

Commit

Permalink
Remove invalid context error on clone.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark S committed Sep 7, 2016
1 parent fc80b7e commit 0d2883a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/View/Widget/DateTimeWidget.php
Expand Up @@ -259,6 +259,7 @@ protected function _deconstructDate($value, $options)

$date = new DateTime();
} else {
/* @var \DateTime $value */
$date = clone $value;
}
} catch (Exception $e) {
Expand Down

0 comments on commit 0d2883a

Please sign in to comment.