Skip to content

Commit

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

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

0 comments on commit 7dc413c

Please sign in to comment.