We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b13bb73 commit 3babf20Copy full SHA for 3babf20
src/PhpGenerator/Factory.php
@@ -30,7 +30,7 @@ public function fromClassReflection(\ReflectionClass $from): ClassType
30
31
$ifaces = $from->getInterfaceNames();
32
foreach ($ifaces as $iface) {
33
- $ifaces = array_filter($ifaces, function ($item) use ($iface) {
+ $ifaces = array_filter($ifaces, function (string $item) use ($iface): bool {
34
return !is_subclass_of($iface, $item);
35
});
36
}
0 commit comments