projects
/
mdref
/
mdref
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
6f93489
)
generator: notices to stderr
author
Michael Wallner
<mike@php.net>
Sat, 12 Feb 2022 00:46:02 +0000
(
01:46
+0100)
committer
Michael Wallner
<mike@php.net>
Sat, 12 Feb 2022 00:46:02 +0000
(
01:46
+0100)
mdref/Generator/Scrap.php
patch
|
blob
|
history
diff --git
a/mdref/Generator/Scrap.php
b/mdref/Generator/Scrap.php
index 82f81dbbeca7e0c91152397014f41d1ec26d432d..30b936be3da07bbcd7155a61e18a81ef83d24b8e 100644
(file)
--- a/
mdref/Generator/Scrap.php
+++ b/
mdref/Generator/Scrap.php
@@
-19,7
+19,7
@@
class Scrap {
$this->createDocBlock();
}
if (!$this->doc) {
-
printf(
... match (get_class($ref)) {
+
fprintf(STDERR,
... match (get_class($ref)) {
\ReflectionClass::class => ["Missing docs for class %s\n", $ref->name],
\ReflectionMethod::class => ["Missing docs for method %s::%s()\n", $ref->class, $ref->name],
\ReflectionProperty::class => ["Missing docs for property %s %s::\$%s\n", $ref->getType(), $ref->class, $ref->name],