Skip to content

Commit 7cae1c9

Browse files
Merge branch '2.3' into 2.7
* 2.3: [HttpFoundation] Fix transient test [HttpFoundation] Add a dependency on the mbstring polyfill add readme files where missing Don't use reflections when possible [Form] Update form tests after the ICU data update [Intl] Update tests and the number formatter to match behaviour of the intl extension [Intl] Update the ICU data to version 55 [Intl] Fix the update-data.php script in preparation for ICU 5.5 Use constant instead of function call. fixed test name automatically generate safe fallback filename Conflicts: src/Symfony/Component/Debug/Debug.php src/Symfony/Component/HttpFoundation/composer.json src/Symfony/Component/Serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php
2 parents 4508d2f + 8a3d0b9 commit 7cae1c9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Container.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,8 @@ public function initialized($id)
356356
public function getServiceIds()
357357
{
358358
$ids = array();
359-
$r = new \ReflectionClass($this);
360-
foreach ($r->getMethods() as $method) {
361-
if (preg_match('/^get(.+)Service$/', $method->name, $match)) {
359+
foreach (get_class_methods($this) as $method) {
360+
if (preg_match('/^get(.+)Service$/', $method, $match)) {
362361
$ids[] = self::underscore($match[1]);
363362
}
364363
}

0 commit comments

Comments
 (0)