X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=scripts%2Fcheck_docs.php;h=79e5ff5eedd023b11a7c77227c65c01b487e2aac;hp=679e8caf6b2065911910344174ea1214f54685a0;hb=0de60a2d6b0a9be44786ca2418169c54157c758d;hpb=9d41facfe3c41db910df23a6c4e2bbdb702077aa diff --git a/scripts/check_docs.php b/scripts/check_docs.php index 679e8ca..79e5ff5 100755 --- a/scripts/check_docs.php +++ b/scripts/check_docs.php @@ -52,7 +52,13 @@ foreach ($ext->getClasses() as $class) { } foreach ($class->getMethods() as $meth) { /* @var $meth ReflectionMethod */ - fg(sprintf("%s/%s.xml", $class->getName(), strtr(trim($meth->getName(),'_'),'_','-'))) or printf("\t%s::%s()\n", $class->getName(), $meth->getName()); + try { + $meth->getPrototype(); + } catch (Exception $ex) { + // if getPrototype throws an exception it's definitely not a method declared in an interface + fg(sprintf("%s/%s.xml", $class->getName(), strtr(trim($meth->getName(),'_'),'_','-'))) or printf("\t%s::%s()\n", $class->getName(), $meth->getName()); + } + } printf("\n"); }