diff --git a/src/AbstractManifest.php b/src/AbstractManifest.php index 4c5cd2a..653f0d6 100644 --- a/src/AbstractManifest.php +++ b/src/AbstractManifest.php @@ -1,5 +1,7 @@ assertTrue($bag->validate()); $fp = fopen($bag->getBagRoot() . DIRECTORY_SEPARATOR . 'bag-info.txt', 'r'); while (!feof($fp)) { - $line = fgets($fp); + $line = (string) fgets($fp); $line = trim($line); if (empty($line)) { continue; @@ -837,7 +839,7 @@ public function testUpdateV07(): void $this->assertTrue($bag->validate()); $fp = fopen($bag->getBagRoot() . DIRECTORY_SEPARATOR . 'bag-info.txt', 'r'); while (!feof($fp)) { - $line = fgets($fp); + $line = (string) fgets($fp); $line = trim($line); if (empty($line)) { continue; diff --git a/tests/BagUtilsTest.php b/tests/BagUtilsTest.php index 9535808..b1d19fe 100644 --- a/tests/BagUtilsTest.php +++ b/tests/BagUtilsTest.php @@ -1,5 +1,7 @@