openai-php / client

⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.
MIT License
4.7k stars 483 forks source link

fix: change invalid return type of exception #203

Closed taras-pinchuk-uinno closed 11 months ago

taras-pinchuk-uinno commented 11 months ago

Fix invalid return type of OpenAI\Exceptions\ErrorException::getErrorCode()

Exception: TypeError OpenAI\Exceptions\ErrorException::getErrorCode(): Return value must be of type ?string, int returned

gehrisandro commented 11 months ago

Hi @taras-pinchuk-uinno

Thank you. Fixed in main.