PHPStan Level 4
This commit is contained in:
1 parent
ea0a67d283
commit
6f1b67b39d
23 files changed
+32
-43
No files matched your search
@@ -169,7 +169,7 @@ abstract class WriterAbstract implements WriterInterface
|
||||
*/
|
||||
protected function throwIfFilePointerIsNotAvailable()
|
||||
{
|
||||
if (!$this->filePointer) {
|
||||
if (!is_resource($this->filePointer)) {
|
||||
throw new IOException('File pointer has not be opened');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user