Skip to content

Commit

Permalink
Fix errors on php < 7
Browse files Browse the repository at this point in the history
  • Loading branch information
wapmorgan committed Jul 13, 2017
1 parent 9c4c404 commit 3070356
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Russian/TimeUnitSpeller.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TimeUnitSpeller extends \morphos\TimeUnitSpeller
const AGO = 'назад';
const IN = 'через';

const AND = 'и';
const AND_WORD = 'и';

const JUST_NOW = 'только что';

Expand Down
4 changes: 2 additions & 2 deletions src/TimeUnitSpeller.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ abstract class TimeUnitSpeller
const AGO = 'ago';
const IN = 'in';

const AND = 'and';
const AND_WORD = 'and';

const JUST_NOW = 'just now';

Expand Down Expand Up @@ -44,7 +44,7 @@ public static function spellInterval(DateInterval $interval, $options = 0)

if ($options & self::SEPARATE && count($parts) > 1) {
$last_part = array_pop($parts);
$spelled = implode(', ', $parts).' '.static::AND.' '.$last_part;
$spelled = implode(', ', $parts).' '.static::AND_WORD.' '.$last_part;
} else
$spelled = implode(' ', $parts);

Expand Down

0 comments on commit 3070356

Please sign in to comment.