<?php
/**
 * Pi Engine (http://piengine.org)
 *
 * @link            http://code.piengine.org for the Pi Engine source repository
 * @copyright       Copyright (c) Pi Engine http://piengine.org
 * @license         http://piengine.org/license.txt BSD 3-Clause License
 * @package         Form
 */

namespace Pi\Validator;

use Laminas\Validator\Date as LaminasDate;

class Date extends LaminasDate
{
    /**
     * {@inheritDoc}
     */
    public function isValid($value)
    {
        if (!$value) {
            return true;
        }
        return parent::isValid($value);
    }
}
