minor #36402 [Twig][Mime] Removed extra quotes in missing package exception message (mikemilano)
This PR was submitted for the master branch but it was squashed and merged into the 4.4 branch instead.
Discussion
----------
[Twig][Mime] Removed extra quotes in missing package exception message
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
The missing package exception copy had a double quote in the composer command disrupting the ability to copy/paste the command.
> try running "composer require "twig/cssinliner-extra twig/inky-extra"
This PR removes the quote before the package name so it reads:
> try running "composer require twig/cssinliner-extra twig/inky-extra"
Commits
-------
b2c9a6ea91
[Twig][Mime] Removed extra quotes in missing package exception message
This commit is contained in:
commit
ac5f45b73a
@ -51,7 +51,7 @@ class NotificationEmail extends TemplatedEmail
|
||||
}
|
||||
|
||||
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))));
|
||||
throw new \LogicException(sprintf('You cannot use "%s" if the "%s" Twig extension%s not available; try running "%s".', static::class, implode('" and "', $missingPackages), \count($missingPackages) > 1 ? 's are' : ' is', 'composer require '.implode(' ', array_keys($missingPackages))));
|
||||
}
|
||||
|
||||
parent::__construct($headers, $body);
|
||||
|
Reference in New Issue
Block a user