Skip to content

Commit 196e96a

Browse files
committed
Method's Parameter Dependencies added to arrows.
1 parent bac286d commit 196e96a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
### Bug fix
4+
5+
* Method's Parameter Dependencies added to arrows.
6+
37
## v0.2.1 (2023-02-16)
48

59
### Bug fix

src/DiagramElement/Entry.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ public function getArrows(): array {
8989
if ( ! $m->getAccessModifier()->isPublic()) {
9090
continue;
9191
}
92-
if (count($m->getParams()) > 0) {
93-
continue;
92+
foreach ($m->getParams() as $p) {
93+
foreach ($p->getType()->getTypes() as $t) {
94+
$arrows[] = new ArrowDependency($this->class, $t);
95+
}
9496
}
9597
foreach ($m->getType()->getTypes() as $t) {
9698
$arrows[] = new ArrowDependency($this->class, $t);

0 commit comments

Comments
 (0)