version(s) affected
dev-dev (hash c402fdd)
Description
When installing an application on a Bitrix24 portal with a demo license, the app.info REST API returns "LICENSE_FAMILY": "demo".
The PortalLicenseFamily enum in b24phpsdk does not include demo as a valid backing value, which causes a fatal error during installation:
"demo" is not a valid backing value for enum Bitrix24\SDK\Application\PortalLicenseFamily
How to reproduce
- Create a demo portal at bitrix24.ru (license type: demo)
- Register a local application
- Install the application - the serverSide step calls app.info
SDK tries to parse LICENSE_FAMILY via PortalLicenseFamily::from('demo') → throws ValueError
Possible Solution
Add "demo" case to the PortalLicenseFamily enum.
Additional Context
Using in https://github.com/bitrix-tools/b24-ai-starter.