The expression return fopen($this->file->getPathname(), 'rb') could also return false which is incompatible with the documented return type resource. Did you maybe forget to handle an error condition?
If the returned type also contains false, it is an indicator that maybe an error condition leading to the specific return statement remains unhandled.
Loading history...
48
}
49
50
/**
51
* @throws ZipException
52
*
53
* @return string returns data as string
54
*/
55
public function getDataAsString()
56
{
57
if (!$this->file->isReadable()) {
58
throw new ZipException(sprintf('The %s file is no longer readable.', $this->file->getPathname()));
If the returned type also contains false, it is an indicator that maybe an error condition leading to the specific return statement remains unhandled.