Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Component / Gettext / PoStreamReader.php
index f84d2514c0c892b03b48ad0e33341cb295886357..9548ea7ea225c70ec5b52c1303d87c741a128eae 100644 (file)
@@ -146,7 +146,7 @@ class PoStreamReader implements PoStreamInterface, PoReaderInterface {
    * Opens the stream and reads the header. The stream is ready for reading
    * items after.
    *
-   * @throws Exception
+   * @throws \Exception
    *   If the URI is not yet set.
    */
   public function open() {
@@ -162,7 +162,7 @@ class PoStreamReader implements PoStreamInterface, PoReaderInterface {
   /**
    * Implements Drupal\Component\Gettext\PoStreamInterface::close().
    *
-   * @throws Exception
+   * @throws \Exception
    *   If the stream is not open.
    */
   public function close() {
@@ -506,6 +506,8 @@ class PoStreamReader implements PoStreamInterface, PoReaderInterface {
       $this->_errors[] = SafeMarkup::format('The translation stream %uri ended unexpectedly at line %line.', $log_vars);
       return FALSE;
     }
+
+    return;
   }
 
   /**