From 54a3cc3a4b255d28217b9f3496d93ed0b0b68f62 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sat, 12 Feb 2022 01:46:02 +0100 Subject: [PATCH] generator: notices to stderr --- mdref/Generator/Scrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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], -- 2.30.2