Better this way
[core.git] / inc / classes / main / streams / class_
index fe179d01c490dd9688048e344e92dc4286f645fb..5cc8474dc773e75b36491f77995248d56745e73e 100644 (file)
@@ -53,7 +53,7 @@ class ???Stream extends BaseStream implements Streamable {
         * @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);
        }
 }