X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=scripts%2Fgen_stubs.php;h=5f28545aec073d20b2a8668ffe3db95e1967134c;hb=1b5ae7fa80e17b048da7535e4f585c5cc4cef3cd;hp=20a1f0fdd853b35d459090e1a43f33a3e4d6cbf2;hpb=bdd6edb59194cda9e5fcb393c48ab4230fceb32a;p=m6w6%2Fext-http 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) {