jolicode / slack-php-api

:hash: PHP Slack Client based on the official OpenAPI specification
https://jolicode.github.io/slack-php-api/
MIT License
222 stars 56 forks source link

ObjsGroup::setPriority() float given error #24

Closed egulhan closed 5 years ago

egulhan commented 5 years ago

Hi. I got the following error while I tried to get private channels (JoliCode\Slack\Api\Endpoint\GroupsList):

Argument 1 passed to JoliCode\Slack\Api\Model\ObjsGroup::setPriority() must be of the type integer or null, float given, called in /var/www/projects/message-bender/web/vendor/jolicode/slack-php-api/generated/Normalizer/ObjsGroupNormalizer.php on line 108

According to coming float value, $priority parameter should accept float value as not like that ObjsGroup::setPriority(?int $priority)

What do you suggest to do workaround solution in quick way (better overriding methods) before fixed?

egulhan commented 5 years ago

better fix here: https://github.com/jolicode/slack-php-api/issues/28

closed.