Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f9b917a

Browse filesBrowse files
committed
[DI] Don't instantiate unexisting reflection class
1 parent c3230f0 commit f9b917a
Copy full SHA for f9b917a

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/DependencyInjection/Extension/Extension.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Extension/Extension.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function getConfiguration(array $config, ContainerBuilder $container)
8282
$class = $container->getReflectionClass($class);
8383
$constructor = $class ? $class->getConstructor() : null;
8484

85-
if (!$constructor || !$constructor->getNumberOfRequiredParameters()) {
85+
if ($class && (!$constructor || !$constructor->getNumberOfRequiredParameters())) {
8686
return $class->newInstance();
8787
}
8888
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.