Permalink
Browse files

add stub file

  • Loading branch information...
chobie committed Mar 4, 2014
1 parent 1c64293 commit 20b6bef24896b1946b8359106c7d028cc855342f
Showing with 568 additions and 0 deletions.
  1. +19 −0 ref.php
  2. +549 −0 stubs/git2.php
View
19 ref.php
@@ -0,0 +1,19 @@
<?php
$ex = new ReflectionExtension("git2");
$result = array();
foreach ($ex->getFunctions() as $func) {
/** @var ReflectionFunction $func */
$name = $func->getName();
$result[$name] = array();
foreach ($func->getParameters() as $param) {
/** @var ReflectionParameter $param */
$result[$name][] = '$' . $param->getName();
}
}
echo "<?php\n";
foreach ($result as $func => $params) {
printf("function %s(%s){}\n", $func, join(", ", $params));
}
Oops, something went wrong.

1 comment on commit 20b6bef

@djfly

This comment has been minimized.

Show comment
Hide comment
@djfly

djfly Mar 9, 2014

cool good jobs!

djfly commented on 20b6bef Mar 9, 2014

cool good jobs!

Please sign in to comment.