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