public function stderr($string) { if ($this->isColorEnabled(\STDERR)) { $args = func_get_args(); array_shift($args); $string = Console::ansiFormat($string, $args); } return fwrite(\STDERR, $string); }
/** * If in daemon mode - no write to console * * @param string $string * * @return int */ public function stderr($string) { if (!$this->demonize && is_resource(\STDERR)) { return parent::stderr($string); } else { return false; } }