File tree 3 files changed +33
-0
lines changed
3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ declare (strict_types=1 );
3
+
4
+ namespace Matthias \SymfonyServiceDefinitionValidator \Tests \Functional \Fixtures ;
5
+
6
+ final class Issue49
7
+ {
8
+ public function __construct (array $ values )
9
+ {
10
+ }
11
+ }
Original file line number Diff line number Diff line change
1
+ parameters :
2
+ app_config :
3
+ abc :
4
+ - a
5
+ - b
6
+ - c
7
+
8
+ services :
9
+ app.services.service_id :
10
+ class : Matthias\SymfonyServiceDefinitionValidator\Tests\Functional\Fixtures\Issue49
11
+ arguments :
12
+ - " @=parameter('app_config')['abc']"
Original file line number Diff line number Diff line change @@ -52,6 +52,16 @@ public function testIfTheServiceDefinitionsAreCorrectTheContainerWillBeCompiled(
52
52
$ this ->addToAssertionCount (1 );
53
53
}
54
54
55
+ public function testIssue49 (): void
56
+ {
57
+ $ loader = new YamlFileLoader ($ this ->container , new FileLocator (__DIR__ . '/Fixtures ' ));
58
+ $ loader ->load ('issue_49.yml ' );
59
+
60
+ $ this ->container ->compile ();
61
+
62
+ $ this ->addToAssertionCount (1 );
63
+ }
64
+
55
65
public function testIfAServiceDefinitionWithAnExpressionArgumentIsCorrectTheContainerWillBeCompiled ()
56
66
{
57
67
if (!class_exists ('Symfony\Component\DependencyInjection\ExpressionLanguage ' )) {
You can’t perform that action at this time.
0 commit comments