Completed
Push — master ( b984b7...c6c1eb )
by thomas
15s queued 10s
created
src/Buffertools/Parser.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Buffertools/Types/VarInt.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
27 27
     }
28 28
 
29 29
     /**
30
-     * @param \GMP $givenPrefix
30
+     * @param resource $givenPrefix
31 31
      * @return UintInterface[]
32 32
      * @throws \InvalidArgumentException
33 33
      */
Please login to merge, or discard this patch.
src/Buffertools/Buffer.php 2 patches
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
173 174
     }
174 175
 
175 176
     /**
176
-     * @return \GMP
177
+     * @return resource
177 178
      */
178 179
     public function getGmp(): \GMP
179 180
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.