Skip to content

Commit

Permalink
Merge pull request laruence#39 from fruit/missing-interfaces-in-skeleton
Browse files Browse the repository at this point in the history
Include Yaf's defined interfaces in generated signature file
  • Loading branch information
laruence committed May 17, 2013
2 parents 2e2b9bf + 8191487 commit 3b5e27d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/yaf.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

$useNamespace = (bool) ini_get("yaf.use_namespace");
$yafClassPrefix = sprintf("Yaf%s", $useNamespace ? "\\" : "_");
$classes = get_declared_classes();
$classes = array_merge(get_declared_classes(), get_declared_interfaces());
foreach ($classes as $key => $value) {
if (strncasecmp($value, $yafClassPrefix, 4)) {
unset($classes[$key]);
Expand Down Expand Up @@ -68,7 +68,7 @@
echo $indent, "/* constants */\n";

foreach ($constants as $k => $v) {
echo $indent, "const ", $k , " = ", $v , ";\n";
echo $indent, "const ", $k , " = \"", $v , "\";\n";
}
echo "\n";
}
Expand Down

0 comments on commit 3b5e27d

Please sign in to comment.