8000 Edit comments · symfony/symfony@5470db2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5470db2

Browse files
committed
Edit comments
1 parent 5f73220 commit 5470db2

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ private function autowireMethod($id, Definition $definition, \ReflectionMethod $
174174
} elseif ($parameter->isDefaultValueAvailable()) {
175175
$value = $parameter->getDefaultValue();
176176
} else {
177+
// The exception code is set to 1 if the exception must be thrown even if it's a setter
177178
if (1 === $e->getCode() || $isConstructor) {
178179
throw $e;
179180
}

src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowirePassTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,6 @@ public function setBar()
727727
public function setNotAutowireable(NotARealClass $n)
728728
{
729729
// should not be called
730-
// ???
731730
}
732731

733732
public function setArgCannotAutowire($foo)

0 commit comments

Comments
 (0)
0