Skip to content

Commit 056612c

Browse files
committed
Edit comments
1 parent 22cb42d commit 056612c

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
@@ -142,6 +142,7 @@ private function autowireMethod($id, Definition $definition, \ReflectionMethod $
142142
} elseif ($parameter->isDefaultValueAvailable()) {
143143
$value = $parameter->getDefaultValue();
144144
} else {
145+
// The exception code is set to 1 if the exception must be thrown even if it's a setter
145146
if (1 === $e->getCode() || $isConstructor) {
146147
throw $e;
147148
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,6 @@ public function setBar()
641641
public function setNotAutowireable(NotARealClass $n)
642642
{
643643
// should not be called
644-
// ???
645644
}
646645

647646
public function setArgCannotAutowire($foo)

0 commit comments

Comments
 (0)