From: Michael Wallner Date: Sat, 12 Feb 2022 00:46:02 +0000 (+0100) Subject: generator: notices to stderr X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=54a3cc3a4b255d28217b9f3496d93ed0b0b68f62;p=mdref%2Fmdref generator: notices to stderr --- diff --git a/mdref/Generator/Scrap.php b/mdref/Generator/Scrap.php index 82f81db..30b936b 100644 --- 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],