Skip to content

Commit a0fe3f8

Browse files
committed
skip empty bind definitions
1 parent 5cb4694 commit a0fe3f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/NodeFactory/Service/AutoBindNodeFactory.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ public function createAutoBindCalls(array $yaml, MethodCall $methodCall): Method
4141
}
4242

4343
if ($key === YamlKey::BIND) {
44+
// skip empty definitions
45+
if (empty($yaml[YamlKey::BIND])) {
46+
continue;
47+
}
48+
4449
$methodCall = $this->createBindMethodCall($methodCall, $yaml[YamlKey::BIND]);
4550
}
4651

0 commit comments

Comments
 (0)