@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * Instantiate class, optionally taking Buffer or HEX. |
28 | 28 | * |
29 | - * @param null|string|BufferInterface $input |
|
29 | + * @param BufferInterface $input |
|
30 | 30 | */ |
31 | 31 | public function __construct($input = null) |
32 | 32 | { |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * Write $data as $bytes bytes. Can be flipped if needed. |
100 | 100 | * |
101 | 101 | * @param integer $numBytes - number of bytes to write |
102 | - * @param SerializableInterface|BufferInterface|string $data - buffer, serializable or hex |
|
102 | + * @param BufferInterface $data - buffer, serializable or hex |
|
103 | 103 | * @param bool $flipBytes |
104 | 104 | * @return Parser |
105 | 105 | */ |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | class VarInt extends AbstractType |
11 | 11 | { |
12 | 12 | /** |
13 | - * @param \GMP $integer |
|
13 | + * @param resource $integer |
|
14 | 14 | * @return array |
15 | 15 | */ |
16 | 16 | public function solveWriteSize(\GMP $integer) |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
30 | - * @param \GMP $givenPrefix |
|
30 | + * @param resource $givenPrefix |
|
31 | 31 | * @return UintInterface[] |
32 | 32 | * @throws \InvalidArgumentException |
33 | 33 | */ |
@@ -79,7 +79,8 @@ discard block |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
82 | - * @param \GMP $gmp |
|
82 | + * @param resource $gmp |
|
83 | + * @param integer $byteSize |
|
83 | 84 | * @return Buffer |
84 | 85 | * @throws \Exception |
85 | 86 | */ |
@@ -173,7 +174,7 @@ discard block |
||
173 | 174 | } |
174 | 175 | |
175 | 176 | /** |
176 | - * @return \GMP |
|
177 | + * @return resource |
|
177 | 178 | */ |
178 | 179 | public function getGmp(): \GMP |
179 | 180 | { |
@@ -4,8 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace BitWasp\Buffertools; |
6 | 6 | |
7 | -use Mdanter\Ecc\Math\GmpMathInterface; |
|
8 | - |
|
9 | 7 | class Buffer implements BufferInterface |
10 | 8 | { |
11 | 9 | /** |