]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/io/class_FileIoStream.php
Rewrote core:
[core.git] / inc / classes / main / io / class_FileIoStream.php
index 2ce19c611a7f6eaa1612200cc4e5f761c92fa624..d8ed3515879f7a60676d77152a265d5ee793e5e1 100644 (file)
@@ -73,7 +73,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
         * @see         FileOutputStreamer
         * @todo        This method needs heavy rewrite
         */
-       public final function saveFile ($fileName, $dataArray) {
+       public final function saveFile ($fileName, array $dataArray) {
                // Try it five times
                $dirName = ''; $fileInstance = NULL;
                for ($idx = 0; $idx < 5; $idx++) {
@@ -255,7 +255,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
         * @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);
        }
 }