Completed
Pull Request — master (#95)
by
unknown
04:48
created
src/Telegram/Types/Custom/MessageArray.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     /**
30 30
      * Traverses through our $data, yielding the result set
31 31
      *
32
-     * @return Update[]
32
+     * @return \Generator
33 33
      */
34 34
     public function traverseObject()
35 35
     {
Please login to merge, or discard this patch.
src/Telegram/Methods/EditMessageMedia.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     }
66 66
 
67 67
     /**
68
-     * @param TelegramRawData $data
68
+     * @param TelegramResponse $data
69 69
      * @param LoggerInterface $logger
70 70
      * @return TelegramTypes
71 71
      * @throws InvalidResultType
Please login to merge, or discard this patch.
src/Telegram/Types/Custom/PassportFileArray.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     /**
27 27
      * Traverses through our $data, yielding the result set
28 28
      *
29
-     * @return PhotoSize[]
29
+     * @return \Generator
30 30
      */
31 31
     public function traverseObject(): \Generator
32 32
     {
Please login to merge, or discard this patch.
src/InternalFunctionality/PostOptionsConstructor.php 2 patches
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -126,9 +126,6 @@
 block discarded – undo
126 126
      * Builds up a multipart form-like array for Guzzle
127 127
      *
128 128
      * @param array $data The original object in array form
129
-     * @param string $fileKeyName A file handler will be sent instead of a string, state here which field it is
130
-     * @param resource $stream The actual file handler
131
-     * @param string $filename
132 129
      * @return array Returns the actual formdata to be sent
133 130
      */
134 131
     public function constructMultipartOptions(array $data, array $multipart_data): array
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,13 +93,13 @@  discard block
 block discarded – undo
93 93
                       'filename' => $value->path,
94 94
                       'stream' => $value->getStream()
95 95
                   ];
96
-                }elseif($value instanceof Photo){
96
+                } elseif($value instanceof Photo){
97 97
                    $return[$key] = [
98 98
                       'id' => $key,
99 99
                       'filename' => $value->media->path,
100 100
                       'stream' => $value->media->getStream()
101 101
                   ];
102
-                }elseif((is_array($value) || $value instanceof Countable)){
102
+                } elseif((is_array($value) || $value instanceof Countable)){
103 103
                   foreach ($value as $kk => $vv){
104 104
                   if($vv instanceof InputFile){
105 105
                    $return[$kk] = [
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                       'filename' => $vv->path,
108 108
                       'stream' => $vv->getStream()
109 109
                   ];
110
-                }elseif($vv instanceof Photo){
110
+                } elseif($vv instanceof Photo){
111 111
                     $return[$kk] = [
112 112
                       'id' => $kk,
113 113
                       'filename' => $vv->media->path,
Please login to merge, or discard this patch.