bin/serve-stub
[mdref/mdref] / mdref / Generator.php
index 8cd96bd96215e0f54e4e61c865ac44a980c2f1a8..ec1a23e8fcb6ad9dc96f8ebc0bb533fca893da6a 100644 (file)
@@ -20,7 +20,7 @@ class Generator {
                        $ns_path = $this->destination . "/" . strtr($ns, "\\", "/");
                        foreach ($funcs as $fn => $rf) {
                                $fn_file = "$ns_path/$fn.md";
-                               fprintf(STDERR, "Generating %s\n", $fn_file);
+                               printf("Generating %s\n", $fn_file);
                                is_dir($ns_path) || mkdir($ns_path, 0770, true);
                                file_put_contents($fn_file, new Func($this, $rf));
                        }
@@ -37,7 +37,7 @@ class Generator {
                        foreach ($cls as $cn => $rc) {
                                $cn_path = "$ns_path/$cn";
                                $cn_file = "$cn_path.md";
-                               fprintf(STDERR, "Generating %s\n", $cn_file);
+                               printf("Generating %s\n", $cn_file);
                                is_dir($ns_path) || mkdir($ns_path, 0770, true);
                                file_put_contents($cn_file, new Cls($this, $rc));
                                $this->generateMethods($rc);