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 fec859a

Browse filesBrowse files
minor #41557 [DependencyInjection] Don't pass null to trim() (derrabus)
This PR was merged into the 4.4 branch. Discussion ---------- [DependencyInjection] Don't pass null to trim() | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Part of #41552 | License | MIT | Doc PR | N/A Commits ------- e14dd67 [DependencyInjection] Don't pass null to trim()
2 parents 6eead34 + e14dd67 commit fec859a
Copy full SHA for fec859a

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2147,7 +2147,9 @@ private function getClasses(Definition $definition): array
21472147
$classes = [];
21482148

21492149
while ($definition instanceof Definition) {
2150-
$classes[] = trim($definition->getClass(), '\\');
2150+
if ($class = $definition->getClass()) {
2151+
$classes[] = trim($class, '\\');
2152+
}
21512153
$factory = $definition->getFactory();
21522154

21532155
if (!\is_array($factory)) {

0 commit comments

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