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

Update DateStep.php #5925

Merged
merged 2 commits into from
Mar 7, 2014
Merged

Update DateStep.php #5925

merged 2 commits into from
Mar 7, 2014

Conversation

maxnuf
Copy link
Contributor

@maxnuf maxnuf commented Mar 6, 2014

fix error: Undefined class constant 'FALSE_FORMAT'
add missing template messages

fix error: Undefined class constant 'FALSE_FORMAT'
@@ -174,7 +174,7 @@ protected function convertString($value, $addErrors = true)
$errors = DateTime::getLastErrors();
if ($errors['warning_count'] > 0) {
if ($addErrors) {
$this->error(self::FALSE_FORMAT);
$this->error(self::FALSEFORMAT);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't seem clear from the diffs, but is there a hidden character here (between FALSE and FORMAT)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not seeing any problem myself, @Ocramius -- maybe an issue with how the diff HTML markup is generated? The diff does not show a space: https://github.com/zendframework/zf2/pull/5925.diff

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nvm... something weird with firefox nightly and the generated HTML

@weierophinney weierophinney added this to the 2.3.0 milestone Mar 6, 2014
DateStep extends Date and calls parent::isValid
it must implement the same messageTemplates
@weierophinney weierophinney self-assigned this Mar 7, 2014
weierophinney added a commit that referenced this pull request Mar 7, 2014
weierophinney added a commit that referenced this pull request Mar 7, 2014
@weierophinney weierophinney merged commit 6702d46 into zendframework:develop Mar 7, 2014
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants