Skip to content

Commit

Permalink
upgrade stubbles/date to 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mikey179 committed Aug 14, 2014
1 parent 123ab0b commit a67d640
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 24 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
3.2.0 (2014-08-14)
------------------

* upgraded stubbles/date to 5.0.0


3.1.1 (2014-08-10)
------------------

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"require-dev": {
"mikey179/vfsStream": "~1.3",
"phpunit/phpunit": "~4.1",
"stubbles/date": "~4.0"
"stubbles/date": "~5.0"
},
"suggest": {
"stubbles/date": "~4.0"
Expand All @@ -23,7 +23,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "3.1.x-dev"
"dev-master": "3.2.x-dev"
}
},
"minimum-stability": "dev",
Expand Down
44 changes: 22 additions & 22 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/main/php/filter/DateFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public function apply(Param $param)
return new Date($param->value());
} catch (IllegalArgumentException $iae) {
$param->addError('DATE_INVALID');
} catch (\InvalidArgumentException $iae) {
$param->addError('DATE_INVALID');
}

return null;
Expand Down
2 changes: 2 additions & 0 deletions src/main/php/filter/DayFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public function apply(Param $param)
return new Day($param->value());
} catch (IllegalArgumentException $iae) {
$param->addError('DATE_INVALID');
} catch (\InvalidArgumentException $iae) {
$param->addError('DATE_INVALID');
}

return null;
Expand Down
2 changes: 2 additions & 0 deletions src/main/php/filter/MonthFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public function apply(Param $param)
return Month::fromString($param->value());
} catch (IllegalArgumentException $iae) {
$param->addError('MONTH_INVALID');
} catch (\InvalidArgumentException $iae) {
$param->addError('MONTH_INVALID');
}

return null;
Expand Down

0 comments on commit a67d640

Please sign in to comment.