generator: notices to stderr
authorMichael Wallner <mike@php.net>
Sat, 12 Feb 2022 00:46:02 +0000 (01:46 +0100)
committerMichael Wallner <mike@php.net>
Sat, 12 Feb 2022 00:46:02 +0000 (01:46 +0100)
mdref/Generator/Scrap.php

index 82f81dbbeca7e0c91152397014f41d1ec26d432d..30b936be3da07bbcd7155a61e18a81ef83d24b8e 100644 (file)
@@ -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],