Completed
Push — master ( d90799...9daa28 )
by Алексей
12:20 queued 09:23
created
src/Helpers/AnnotationHelper.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@
 block discarded – undo
18 18
         'type'     => 'string',
19 19
     ];
20 20
 
21
+    /**
22
+     * @param \Telegram\Base\BaseType $class
23
+     */
21 24
     public static function getAnnotations($class, $value)
22 25
     {
23 26
         $propertyReflect = new \ReflectionProperty($class, $value);
Please login to merge, or discard this patch.
src/Base/BaseType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
             }
31 31
 
32 32
             if (array_key_exists('var', $annotatinons)) {
33
-                $class = '\\Telegram\\Types\\' . $annotatinons['var'];
33
+                $class = '\\Telegram\\Types\\'.$annotatinons['var'];
34 34
                 if (class_exists($class)) {
35 35
                     /** @var BaseType $class */
36 36
                     $this->$key = $class::create($value);
Please login to merge, or discard this patch.