Skip to content

Commit

Permalink
Include Yaf's defined interfaces in generated signature file
Browse files Browse the repository at this point in the history
  • Loading branch information
fruit committed May 16, 2013
1 parent 2e2b9bf commit 8191487
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 8191487

Please sign in to comment.