Skip to content

Commit 76e7b6a

Browse files
committed
Fixed failing tests
1 parent fb621fd commit 76e7b6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Coduo/PHPHumanizer/Aeon/Calendar/Formatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(TranslatorInterface $translator)
2626

2727
public function timeUnit(Unit $unit, string $locale = 'en') : string
2828
{
29-
if (!\class_exists('\Aeon\Calendar\Gregorian\Calendar')) {
29+
if (!\interface_exists('\Aeon\Calendar\Gregorian\Calendar')) {
3030
throw new \RuntimeException('Please add "aeon-php/calendar": ^1.0 to composer.json first');
3131
}
3232

src/Coduo/PHPHumanizer/Aeon/Calendar/UnitCompound.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(Unit $timeUnit)
3737
*/
3838
public function components() : array
3939
{
40-
if (!\class_exists('\Aeon\Calendar\Gregorian\Calendar')) {
40+
if (!\interface_exists('\Aeon\Calendar\Gregorian\Calendar')) {
4141
throw new \RuntimeException('Please add "aeon-php/calendar": ^1.0 to composer.json first');
4242
}
4343

0 commit comments

Comments
 (0)