X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=scripts%2Fgen_stubs.php;h=5f28545aec073d20b2a8668ffe3db95e1967134c;hp=20a1f0fdd853b35d459090e1a43f33a3e4d6cbf2;hb=13662c61792685435496cd25c95ee1c1950cd9d7;hpb=bdd6edb59194cda9e5fcb393c48ab4230fceb32a diff --git a/scripts/gen_stubs.php b/scripts/gen_stubs.php index 20a1f0f..5f28545 100755 --- a/scripts/gen_stubs.php +++ b/scripts/gen_stubs.php @@ -1,8 +1,11 @@ #!/usr/bin/env php isInterface()) { + $m ^= ReflectionMethod::IS_ABSTRACT; + } foreach (Reflection::getModifierNames($m) as $mn) { $n .= $mn . " "; } @@ -169,7 +172,7 @@ foreach ($namespaces as $ns) { foreach ($c->getMethods() as $m) { if ($m->getDeclaringClass()->getName() == $c->getName()) { - fprintf($out, "\t\t%sfunction %s(", m($m->getModifiers()), + fprintf($out, "\t\t%sfunction %s(", m($m->getModifiers(), $c), $m->getName()); $ps = array(); foreach ($m->getParameters() as $p) {