1
0
Fork 0
mirror of https://github.com/shufflingpixels/php-io.git synced 2026-10-19 06:26:46 +02:00

Rename FileMode::writeable to writable

This commit is contained in:
Henrik Hautakoski 2026-06-26 13:52:37 +02:00
parent ad457610d7
commit 2ea813589a
3 changed files with 5 additions and 5 deletions

View file

@ -29,6 +29,6 @@ class File extends Resource
throw new IOException("Unable to open file");
}
return new self($fd, $mode->seekable(), $mode->readable(), $mode->writeable());
return new self($fd, $mode->seekable(), $mode->readable(), $mode->writable());
}
}

View file

@ -28,7 +28,7 @@ enum FileMode : string
return $this === self::READ || $this === self::RW;
}
public function writeable(): bool
public function writable(): bool
{
return $this === self::WRITE || $this === self::RW;
}