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:
parent
2ea813589a
commit
424714bbba
1 changed files with 3 additions and 3 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue