Skip to content

Commit

Permalink
Cake\I18n\Time toQuarter() return Int
Browse files Browse the repository at this point in the history
GitHub Issue #12903
  • Loading branch information
jonmc1 committed Jan 16, 2019
1 parent a1a1dbb commit 83498a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/I18n/Time.php
Expand Up @@ -174,7 +174,7 @@ public function toQuarter($range = false)
{
$quarter = ceil($this->format('m') / 3);
if ($range === false) {
return $quarter;
return (int)$quarter;
}

$year = $this->format('Y');
Expand Down

0 comments on commit 83498a5

Please sign in to comment.