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

bump minimum php version to 5.5 #4

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"require": {
"php": ">=5.3.23",
"php": ">=5.5",
"zendframework/zend-stdlib": "~2.5"
},
"require-dev": {
Expand Down
3 changes: 1 addition & 2 deletions src/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ public function isValid($value)
*/
protected function convertToDateTime($param, $addErrors = true)
{
// @TODO: when minimum dependency will be PHP 5.5, we can only keep check against DateTimeInterface
if ($param instanceof DateTime || $param instanceof DateTimeInterface) {
if ($param instanceof DateTimeInterface) {
return $param;
}

Expand Down