1
0
Fork 0
mirror of https://github.com/shufflingpixels/php-io.git synced 2026-08-15 11:48:13 +02:00

Rename Resource::writeable to writable

This commit is contained in:
Henrik Hautakoski 2026-06-26 13:53:05 +02:00
parent 2ea813589a
commit 424714bbba

View file

@ -25,7 +25,7 @@ abstract class Resource implements StreamInterface
protected mixed $resource,
protected bool $seekable,
protected bool $readable,
protected bool $writeable)
protected bool $writable)
{
}
@ -135,7 +135,7 @@ abstract class Resource implements StreamInterface
*/
public function isWritable(): bool
{
return $this->writeable;
return $this->writable;
}
/**
@ -147,7 +147,7 @@ abstract class Resource implements StreamInterface
*/
public function write(string $string): int
{
if (!$this->writeable) {
if (!$this->writable) {
throw new IOException("Stream is not writeable");
}