Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Fix conflicting use statement
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwindell committed Jul 1, 2013
1 parent e448283 commit fae489a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Zend/Form/Element/MonthSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Zend\Form\Element;

use DateTime;
use DateTime as PhpDateTime;
use Zend\Form\Element;
use Zend\Form\ElementPrepareAwareInterface;
use Zend\Form\FormInterface;
Expand Down Expand Up @@ -265,7 +265,7 @@ public function shouldRenderDelimiters()
*/
public function setValue($value)
{
if ($value instanceof DateTime) {
if ($value instanceof PhpDateTime) {
$value = array(
'year' => $value->format('Y'),
'month' => $value->format('m')
Expand Down

0 comments on commit fae489a

Please sign in to comment.