@@ -18,6 +18,9 @@ |
||
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); |
@@ -30,7 +30,7 @@ |
||
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); |