aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2018-01-23 10:51:50 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2018-01-23 10:51:50 +0100
commit61a38c24df0dd20cefcd6fee4a2bb7b76d55e18e (patch)
tree801300d39798ac6fded0c4963320733771556bad
parent72a4369951d6a5189006786d7db8531a05e39879 (diff)
downloadConsole-61a38c24df0dd20cefcd6fee4a2bb7b76d55e18e.zip
Console-61a38c24df0dd20cefcd6fee4a2bb7b76d55e18e.tar.gz
Console-61a38c24df0dd20cefcd6fee4a2bb7b76d55e18e.tar.bz2
chore(composer) Use `dev-master` dependencies.HEADmaster
-rw-r--r--Source/Input.php18
-rw-r--r--Source/Processus.php16
-rw-r--r--composer.json16
3 files changed, 25 insertions, 25 deletions
diff --git a/Source/Input.php b/Source/Input.php
index 16b5453..1f432ff 100644
--- a/Source/Input.php
+++ b/Source/Input.php
@@ -95,7 +95,7 @@ class Input implements Stream\IStream\In
/**
* Read n characters.
*/
- public function read(int $length): string
+ public function read(int $length)
{
return $this->_input->read($length);
}
@@ -103,7 +103,7 @@ class Input implements Stream\IStream\In
/**
* Alias of $this->read().
*/
- public function readString(int $length): string
+ public function readString(int $length)
{
return $this->_input->readString($length);
}
@@ -111,7 +111,7 @@ class Input implements Stream\IStream\In
/**
* Read a character.
*/
- public function readCharacter(): string
+ public function readCharacter()
{
return $this->_input->readCharacter();
}
@@ -119,7 +119,7 @@ class Input implements Stream\IStream\In
/**
* Read a boolean.
*/
- public function readBoolean(): bool
+ public function readBoolean()
{
return $this->_input->readBoolean();
}
@@ -127,7 +127,7 @@ class Input implements Stream\IStream\In
/**
* Read an integer.
*/
- public function readInteger(int $length = 1): int
+ public function readInteger(int $length = 1)
{
return $this->_input->readInteger($length);
}
@@ -135,7 +135,7 @@ class Input implements Stream\IStream\In
/**
* Read a float.
*/
- public function readFloat(int $length = 1): float
+ public function readFloat(int $length = 1)
{
return $this->_input->readFloat($length);
}
@@ -144,7 +144,7 @@ class Input implements Stream\IStream\In
* Read an array.
* Alias of the $this->scanf() method.
*/
- public function readArray($argument = null): array
+ public function readArray($argument = null)
{
return $this->_input->readArray($argument);
}
@@ -152,7 +152,7 @@ class Input implements Stream\IStream\In
/**
* Read a line.
*/
- public function readLine(): string
+ public function readLine()
{
return $this->_input->readLine();
}
@@ -160,7 +160,7 @@ class Input implements Stream\IStream\In
/**
* Read all, i.e. read as much as possible.
*/
- public function readAll(int $offset = 0): string
+ public function readAll(int $offset = 0)
{
return $this->_input->readAll($offset);
}
diff --git a/Source/Processus.php b/Source/Processus.php
index 6d7d6ae..e487b43 100644
--- a/Source/Processus.php
+++ b/Source/Processus.php
@@ -494,7 +494,7 @@ class Processus extends Stream implements Stream\IStream\In, Stream\IStream\Out,
/**
* Read n characters.
*/
- public function read(int $length, int $pipe = 1): string
+ public function read(int $length, int $pipe = 1)
{
if (0 > $length) {
throw new Exception(
@@ -510,7 +510,7 @@ class Processus extends Stream implements Stream\IStream\In, Stream\IStream\Out,
/**
* Alias of $this->read().
*/
- public function readString(int $length, int $pipe = 1): string
+ public function readString(int $length, int $pipe = 1)
{
return $this->read($length, $pipe);
}
@@ -518,7 +518,7 @@ class Processus extends Stream implements Stream\IStream\In, Stream\IStream\Out,
/**
* Read a character.
*/
- public function readCharacter(int $pipe = 1): string
+ public function readCharacter(int $pipe = 1)
{
return fgetc($this->getPipe($pipe));
}
@@ -526,7 +526,7 @@ class Processus extends Stream implements Stream\IStream\In, Stream\IStream\Out,
/**
* Read a boolean.
*/
- public function readBoolean(int $pipe = 1): bool
+ public function readBoolean(int $pipe = 1)
{
return (bool) $this->read(1, $pipe);
}
@@ -534,7 +534,7 @@ class Processus extends Stream implements Stream\IStream\In, Stream\IStream\Out,
/**
* Read an integer.
*/
- public function readInteger(int $length = 1, int $pipe = 1): int
+ public function readInteger(int $length = 1, int $pipe = 1)
{
return (int) $this->read($length, $pipe);
}
@@ -542,7 +542,7 @@ class Processus extends Stream implements Stream\IStream\In, Stream\IStream\Out,
/**
* Read a float.
*/
- public function readFloat(int $length = 1, int $pipe = 1): float
+ public function readFloat(int $length = 1, int $pipe = 1)
{
return (float) $this->read($length, $pipe);
}
@@ -551,7 +551,7 @@ class Processus extends Stream implements Stream\IStream\In, Stream\IStream\Out,
* Read an array.
* Alias of the $this->scanf() method.
*/
- public function readArray(string $format = null, int $pipe = 1): array
+ public function readArray(string $format = null, int $pipe = 1)
{
return $this->scanf($format, $pipe);
}
@@ -567,7 +567,7 @@ class Processus extends Stream implements Stream\IStream\In, Stream\IStream\Out,
/**
* Read all, i.e. read as much as possible.
*/
- public function readAll(int $offset = -1, int $pipe = 1): string
+ public function readAll(int $offset = -1, int $pipe = 1)
{
$_pipe = $this->getPipe($pipe);
diff --git a/composer.json b/composer.json
index 801d1a6..687531a 100644
--- a/composer.json
+++ b/composer.json
@@ -26,16 +26,16 @@
},
"require": {
"php" : ">=7.1",
- "hoa/consistency": "~1.0",
- "hoa/event" : "~1.0",
- "hoa/exception" : "~1.0",
- "hoa/file" : "~1.0",
- "hoa/protocol" : "~1.0",
- "hoa/stream" : "~1.0",
- "hoa/ustring" : "~4.0"
+ "hoa/consistency": "dev-master",
+ "hoa/event" : "dev-master",
+ "hoa/exception" : "dev-master",
+ "hoa/file" : "dev-master",
+ "hoa/protocol" : "dev-master",
+ "hoa/stream" : "dev-master",
+ "hoa/ustring" : "dev-master"
},
"require-dev": {
- "hoa/test": "~2.0"
+ "hoa/test": "dev-master"
},
"autoload": {
"psr-4": {