This commit is contained in:
Fabien Potencier 2020-02-03 17:40:51 +01:00
parent 87c11c2b4f
commit a4544c2571

View File

@ -50,7 +50,7 @@ class NotificationEmail extends TemplatedEmail
$missingPackages['twig/inky-extra'] = 'Inky';
}
if ([] !== $missingPackages) {
if ($missingPackages) {
throw new \LogicException(sprintf('You cannot use "%s" if the %s Twig extension%s not available; try running "composer require %s".', static::class, implode(' and ', $missingPackages), \count($missingPackages) > 1 ? 's are' : ' is', implode(' ', array_keys($missingPackages))));
}