Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0bbbda4

Browse files
committed
Fix method name
1 parent 1b3d41a commit 0bbbda4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ public function findTaggedServiceIds(string $name, bool $throwOnAbstract = false
13561356
*
13571357
* @return array<string, array> An array of tags with the tagged class as key, holding a list of attribute arrays
13581358
*/
1359-
public function findTaggedValueObject(string $name, bool $autoExclude = true): array
1359+
public function findTaggedValueObjects(string $name, bool $autoExclude = true): array
13601360
{
13611361
$this->usedTags[] = $name;
13621362
$tags = [];

src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ public function testFindTaggedServiceIds()
10891089
$builder->findTaggedServiceIds('foo', true);
10901090
}
10911091

1092-
public function testFindTaggedValueObject()
1092+
public function testFindTaggedValueObjects()
10931093
{
10941094
$builder = new ContainerBuilder();
10951095
$builder
@@ -1100,10 +1100,10 @@ public function testFindTaggedValueObject()
11001100
;
11011101

11021102
$expected = ['foo' => [['foo' => 'foo'], ['foofoo' => 'foofoo']]];
1103-
$this->assertSame($expected, $builder->findTaggedValueObject('foo', false));
1103+
$this->assertSame($expected, $builder->findTaggedValueObjects('foo', false));
11041104
$this->assertFalse($builder->getDefinition('foo')->hasTag('container.excluded'));
11051105
$this->assertFalse($builder->getDefinition('foo')->isAbstract());
1106-
$this->assertSame($expected, $builder->findTaggedValueObject('foo'));
1106+
$this->assertSame($expected, $builder->findTaggedValueObjects('foo'));
11071107
$this->assertTrue($builder->getDefinition('foo')->hasTag('container.excluded'));
11081108
$this->assertTrue($builder->getDefinition('foo')->isAbstract());
11091109
}

0 commit comments

Comments
 (0)