Better this way
[core.git] / inc / classes / main / streams / output / class_
index e0020e7bac6a7feadae9b5f7773cc24f26d75a97..ce5dda254096c5cd8e37891d25b72a10e1f3f45b 100644 (file)
@@ -53,7 +53,7 @@ class ???OutputStream extends BaseStream implements OutputStreamable {
         * @throws      UnsupportedOperationException   If this method is called
         */
        public function streamData ($data) {
-               $this->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.');
+               self::createDebugInstance(__CLASS__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.');
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 }