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

Skip to content

Commit d37eeab

Browse files
committed
Edit comments
1 parent 574c02b commit d37eeab

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
@@ -187,6 +187,7 @@ private function autowireMethod($id, Definition $definition, \ReflectionMethod $
187187
} elseif ($parameter->isDefaultValueAvailable()) {
188188
$value = $parameter->getDefaultValue();
189189
} else {
190+
// The exception code is set to 1 if the exception must be thrown even if it's a setter
190191
if (1 === $e->getCode() || $isConstructor) {
191192
throw $e;
192193
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,6 @@ public function setBar()
763763
public function setNotAutowireable(NotARealClass $n)
764764
{
765765
// should not be called
766-
// ???
767766
}
768767

769768
public function setArgCannotAutowire($foo)

0 commit comments

Comments
 (0)
0