Skip to content

Commit

Permalink
added missing typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 6, 2018
1 parent b13bb73 commit 3babf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpGenerator/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function fromClassReflection(\ReflectionClass $from): ClassType

$ifaces = $from->getInterfaceNames();
foreach ($ifaces as $iface) {
$ifaces = array_filter($ifaces, function ($item) use ($iface) {
$ifaces = array_filter($ifaces, function (string $item) use ($iface): bool {
return !is_subclass_of($iface, $item);
});
}
Expand Down

0 comments on commit 3babf20

Please sign in to comment.