]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/ReversedFileReader.php
spelling: author
[friendica.git] / src / Util / ReversedFileReader.php
index cda78ad0abb0b76037f6cfccf22eb308de262ef5..fbd32d51fd4886f25cc165dc65c6ee1d539c55d1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -60,7 +60,7 @@ class ReversedFileReader implements \Iterator
                $this->fh = fopen($filename, 'r');
                if (!$this->fh) {
                        // this should use a custom exception.
-                       throw \Exception("Unable to open $filename");
+                       throw new \Exception("Unable to open $filename");
                }
                $this->filesize = filesize($filename);
                $this->pos      = -1;