Skip to content

Commit 812a81a

Browse files
Merge branch '2.7' into 2.8
* 2.7: [HttpFoundation] Fix transient test [HttpFoundation] Add a dependency on the mbstring polyfill [2.7] update readme files for new components add readme files where missing fix lowest TwigBridge deps versions [EventDispatcher] fix syntax error Don't use reflections when possible 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 [Process] Fix memory issue when using large input streams Use constant instead of function call. fixed test name automatically generate safe fallback filename [Console] default to stderr in the console helpers Conflicts: composer.json src/Symfony/Bridge/PhpUnit/README.md src/Symfony/Bridge/Twig/composer.json src/Symfony/Component/Console/Helper/DialogHelper.php src/Symfony/Component/Debug/DebugClassLoader.php src/Symfony/Component/HttpFoundation/composer.json src/Symfony/Component/Security/Acl/README.md src/Symfony/Component/Security/Core/README.md src/Symfony/Component/Security/Csrf/README.md src/Symfony/Component/Security/Http/README.md
2 parents f07d44f + e6813dd commit 812a81a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DataCollector/ConfigDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function collect(Request $request, Response $response, \Exception $except
7575
'wincache_enabled' => extension_loaded('wincache') && ini_get('wincache.ocenabled'),
7676
'zend_opcache_enabled' => extension_loaded('Zend OPcache') && ini_get('opcache.enable'),
7777
'bundles' => array(),
78-
'sapi_name' => php_sapi_name(),
78+
'sapi_name' => PHP_SAPI,
7979
);
8080

8181
if (isset($this->kernel)) {

DependencyInjection/FragmentRendererPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public function process(ContainerBuilder $container)
5252
throw new \InvalidArgumentException(sprintf('The service "%s" must not be abstract as fragment renderer are lazy-loaded.', $id));
5353
}
5454

55-
$refClass = new \ReflectionClass($container->getParameterBag()->resolveValue($def->getClass()));
55+
$class = $container->getParameterBag()->resolveValue($def->getClass());
5656
$interface = 'Symfony\Component\HttpKernel\Fragment\FragmentRendererInterface';
57-
if (!$refClass->implementsInterface($interface)) {
57+
if (!is_subclass_of($class, $interface)) {
5858
throw new \InvalidArgumentException(sprintf('Service "%s" must implement interface "%s".', $id, $interface));
5959
}
6060

0 commit comments

Comments
 (0)