File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Coduo/PHPHumanizer/Aeon/Calendar Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments