Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech committed Jan 20, 2025
1 parent fb621fd commit 76e7b6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Coduo/PHPHumanizer/Aeon/Calendar/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(TranslatorInterface $translator)

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

Expand Down
2 changes: 1 addition & 1 deletion src/Coduo/PHPHumanizer/Aeon/Calendar/UnitCompound.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(Unit $timeUnit)
*/
public function components() : array
{
if (!\class_exists('\Aeon\Calendar\Gregorian\Calendar')) {
if (!\interface_exists('\Aeon\Calendar\Gregorian\Calendar')) {
throw new \RuntimeException('Please add "aeon-php/calendar": ^1.0 to composer.json first');
}

Expand Down

0 comments on commit 76e7b6a

Please sign in to comment.