Skip to content

Commit

Permalink
Trim down date/time hint types.
Browse files Browse the repository at this point in the history
While other types are accepted, having many different types, which are
usually only used when _setting_ data, might be confusing especially
for beginners.
  • Loading branch information
ndm2 committed Sep 10, 2015
1 parent 8f6ed16 commit 54cccf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/DocBlockHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function columnTypeToHintType($type)
case 'datetime':
case 'time':
case 'timestamp':
return 'string|int|\DateTime|\Cake\I18n\Time';
return '\Cake\I18n\Time';
}

return null;
Expand Down

0 comments on commit 54cccf7

Please sign in to comment.