Skip to content

Commit ae91f50

Browse files
committed
Fix quotes in exception messages
1 parent 587ba07 commit ae91f50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/ParameterBag/EnvPlaceholderParameterBagTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function testMergeWithDifferentIdentifiersForPlaceholders()
112112
public function testResolveEnvRequiresStrings()
113113
{
114114
$this->expectException('Symfony\Component\DependencyInjection\Exception\RuntimeException');
115-
$this->expectExceptionMessage('The default value of env parameter "INT_VAR" must be a string or null, integer given.');
115+
$this->expectExceptionMessage('The default value of env parameter "INT_VAR" must be a string or null, "integer" given.');
116116

117117
$bag = new EnvPlaceholderParameterBag();
118118
$bag->get('env(INT_VAR)');
@@ -154,7 +154,7 @@ public function testResolveEnvAllowsNull()
154154
public function testResolveThrowsOnBadDefaultValue()
155155
{
156156
$this->expectException('Symfony\Component\DependencyInjection\Exception\RuntimeException');
157-
$this->expectExceptionMessage('The default value of env parameter "ARRAY_VAR" must be a string or null, array given.');
157+
$this->expectExceptionMessage('The default value of env parameter "ARRAY_VAR" must be a string or null, "array" given.');
158158
$bag = new EnvPlaceholderParameterBag();
159159
$bag->get('env(ARRAY_VAR)');
160160
$bag->set('env(ARRAY_VAR)', []);

0 commit comments

Comments
 (0)