]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/output/debug/error/class_DebugErrorLogOutput.php
Rewrites:
[core.git] / framework / main / classes / output / debug / error / class_DebugErrorLogOutput.php
index cdbcf57c6d3523615d44f3aa4fa104ea7a2a0a64..7903b910acbe96cda921f9c4ce1bf97bd39c6540 100644 (file)
@@ -61,7 +61,7 @@ class DebugErrorLogOutput extends BaseDebugOutput implements Debugger, OutputStr
         * @param       $stripTags      Whether HTML tags shall be stripped out
         * @return      void
         */
-       public final function outputStream ($output, $stripTags = false) {
+       public final function outputStream (string $output, bool $stripTags = false) {
                // Split multiple lines into and array to put them out line-by-line
                $errorLines = explode(chr(10), $output);
 
@@ -85,11 +85,11 @@ class DebugErrorLogOutput extends BaseDebugOutput implements Debugger, OutputStr
         * @param       $stripTags      Whether HTML tags shall be stripped out
         * @return      void
         */
-       public final function output ($outStream = false, $stripTags = false) {
+       public final function output (string $outStream = '', bool $stripTags = false) {
                // Empty output will be silently ignored
-               if ($outStream !== false) {
+               if (!empty($outStream)) {
                        $this->outputStream($outStream);
-               } // END - if
+               }
        }
 
        /**