aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-10 10:21:45 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-10 10:21:45 +0100
commit99860ba29e97abf514863c3f2975c7753f5cfc47 (patch)
treebf76308b003bfd20aa5bf465b144a4ec296f10c2
parent38791b9d4eeb5e88b7cd0a28be074fa94f34af7b (diff)
downloadStream-99860ba29e97abf514863c3f2975c7753f5cfc47.zip
Stream-99860ba29e97abf514863c3f2975c7753f5cfc47.tar.gz
Stream-99860ba29e97abf514863c3f2975c7753f5cfc47.tar.bz2
chore(php) `read` output is mixed.
-rw-r--r--Source/IStream/In.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/IStream/In.php b/Source/IStream/In.php
index 4b498a0..6e25710 100644
--- a/Source/IStream/In.php
+++ b/Source/IStream/In.php
@@ -53,39 +53,39 @@ interface In extends Stream
/**
* Read n characters.
*/
- public function read(int $length): string;
+ public function read(int $length);
/**
* Alias of $this->read().
*/
- public function readString(int $length): string;
+ public function readString(int $length);
/**
* Read a character.
* It could be equivalent to $this->read(1).
*/
- public function readCharacter(): string;
+ public function readCharacter();
/**
* Read a boolean.
*/
- public function readBoolean(): bool;
+ public function readBoolean();
/**
* Read an integer.
*/
- public function readInteger(int $length = 1): int;
+ public function readInteger(int $length = 1);
/**
* Read a float.
*/
- public function readFloat(int $length = 1): float;
+ public function readFloat(int $length = 1);
/**
* Read an array.
* In most cases, it could be an alias to the $this->scanf() method.
*/
- public function readArray(): array;
+ public function readArray();
/**
* Read a line.
@@ -95,7 +95,7 @@ interface In extends Stream
/**
* Read all, i.e. read as much as possible.
*/
- public function readAll(int $offset = 0): string;
+ public function readAll(int $offset = 0);
/**
* Parse input from a stream according to a format.