PHPStan Level 4

This commit is contained in:
Adrien Loison committed 2022-01-23 15:20:47 +01:00
1 parent ea0a67d283
commit 695a3deb72
23 files changed
+32 -43

No files matched your search

+1 -1
View File
@@ -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');
}
}