X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=scripts%2Fgen_stubs.php;h=5f28545aec073d20b2a8668ffe3db95e1967134c;hb=8d5c6f1fb45df722099abed5170837f637925e65;hp=20a1f0fdd853b35d459090e1a43f33a3e4d6cbf2;hpb=57e944b102006abfa4005337b0ac5901425f4289;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) {