Skip to content

Commit 708e9a3

Browse files
[Console][DoctrineBridge][PhpUnitBridge] Remove backticks from exception messages
1 parent d5c0f71 commit 708e9a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Form/ChoiceList/DoctrineChoiceLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(ObjectManager $manager, string $class, IdReader $idR
4141
$classMetadata = $manager->getClassMetadata($class);
4242

4343
if ($idReader && !$idReader->isSingleId()) {
44-
throw new \InvalidArgumentException(sprintf('The second argument `$idReader` of "%s" must be null when the query cannot be optimized because of composite id fields.', __METHOD__));
44+
throw new \InvalidArgumentException(sprintf('The second argument "$idReader" of "%s" must be null when the query cannot be optimized because of composite id fields.', __METHOD__));
4545
}
4646

4747
$this->manager = $manager;

Tests/Form/ChoiceList/DoctrineChoiceLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ public function testLoadChoicesForValuesLoadsOnlyChoicesIfValueIsIdReader()
416416
public function testPassingIdReaderWithoutSingleIdEntity()
417417
{
418418
$this->expectException(\InvalidArgumentException::class);
419-
$this->expectExceptionMessage('The second argument `$idReader` of "Symfony\\Bridge\\Doctrine\\Form\\ChoiceList\\DoctrineChoiceLoader::__construct" must be null when the query cannot be optimized because of composite id fields.');
419+
$this->expectExceptionMessage('The second argument "$idReader" of "Symfony\\Bridge\\Doctrine\\Form\\ChoiceList\\DoctrineChoiceLoader::__construct" must be null when the query cannot be optimized because of composite id fields.');
420420

421421
$idReader = $this->createMock(IdReader::class);
422422
$idReader->expects($this->once())

0 commit comments

Comments
 (0)