6.1: Mapping Error when reading licenses
Closed this issue · 1 comments
mutec commented
Error for 'license' in 'wcf\system\package\license\LicenseData::__construct()': Type 'mixed' in 'array' is too permissive.
Message: Error for `license` in `wcf\system\package\license\LicenseData::__construct()`: Type `mixed` in `array` is too permissive.
Request URI: GET /acp/index.php?index/
======
Error Class: CuyZ\Valinor\Mapper\Object\Exception\PermissiveTypeNotAllowed
Error Message: Error for `license` in `wcf\system\package\license\LicenseData::__construct()`: Type `mixed` in `array` is too permissive.
Error Code: 1655389255
File: /lib/system/api/cuyz/valinor/src/Mapper/Object/Factory/StrictTypesObjectBuilderFactory.php (28)
Extra Information: -
Stack Trace:
/lib/system/api/cuyz/valinor/src/Mapper/Object/Factory/CacheObjectBuilderFactory.php (30): CuyZ\Valinor\Mapper\Object\Factory\StrictTypesObjectBuilderFactory->for(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/ObjectNodeBuilder.php (38): CuyZ\Valinor\Mapper\Object\Factory\CacheObjectBuilderFactory->for(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/CasterNodeBuilder.php (24): CuyZ\Valinor\Mapper\Tree\Builder\ObjectNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/UnionNodeBuilder.php (33): CuyZ\Valinor\Mapper\Tree\Builder\CasterNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/InterfaceNodeBuilder.php (64): CuyZ\Valinor\Mapper\Tree\Builder\UnionNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/CasterProxyNodeBuilder.php (28): CuyZ\Valinor\Mapper\Tree\Builder\InterfaceNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/IterableNodeBuilder.php (26): CuyZ\Valinor\Mapper\Tree\Builder\CasterProxyNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/StrictNodeBuilder.php (36): CuyZ\Valinor\Mapper\Tree\Builder\IterableNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/ErrorCatcherNodeBuilder.php (33): CuyZ\Valinor\Mapper\Tree\Builder\StrictNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/RootNodeBuilder.php (16): CuyZ\Valinor\Mapper\Tree\Builder\ErrorCatcherNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/TypeTreeMapper.php (47): CuyZ\Valinor\Mapper\Tree\Builder\RootNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/TypeTreeMapper.php (27): CuyZ\Valinor\Mapper\TypeTreeMapper->node(…)
/lib/system/package/license/LicenseApi.class.php (47): CuyZ\Valinor\Mapper\TypeTreeMapper->map(…)
/lib/system/package/license/LicenseApi.class.php (81): wcf\system\package\license\LicenseApi::parseLicenseData(…)
/lib/system/package/license/LicenseApi.class.php (122): wcf\system\package\license\LicenseApi::fetchFromRemote(…)
/lib/system/acp/dashboard/box/ExpiringLicensesAcpDashboardBox.class.php (64): wcf\system\package\license\LicenseApi->getUpToDateLicenseData(…)
/lib/system/acp/dashboard/box/ExpiringLicensesAcpDashboardBox.class.php (38): wcf\system\acp\dashboard\box\ExpiringLicensesAcpDashboardBox->getLicenseData(…)
/lib/system/acp/dashboard/box/ExpiringLicensesAcpDashboardBox.class.php (32): wcf\system\acp\dashboard\box\ExpiringLicensesAcpDashboardBox->getExpiredLicenses(…)
/lib/system/acp/dashboard/AcpDashboard.class.php (55): wcf\system\acp\dashboard\box\ExpiringLicensesAcpDashboardBox->hasContent(…)
[internal function] (?): wcf\system\acp\dashboard\AcpDashboard::wcf\system\acp\dashboard\{closure}(…)
/lib/system/acp/dashboard/AcpDashboard.class.php (55): array_filter(…)
/acp/templates/compiled/0_wcf_1_index.php (961): wcf\system\acp\dashboard\AcpDashboard->getVisibleBoxes(…)
/lib/system/template/TemplateEngine.class.php (457): include(…)
/lib/page/AbstractPage.class.php (372): wcf\system\template\TemplateEngine->display(…)
/lib/acp/page/IndexPage.class.php (77): wcf\page\AbstractPage->show(…)
/lib/page/AbstractPage.class.php (124): wcf\acp\page\IndexPage->show(…)
/lib/system/request/Request.class.php (50): wcf\page\AbstractPage->__run(…)
/lib/http/middleware/HandleValinorMappingErrors.class.php (35): wcf\system\request\Request->handle(…)
/lib/system/request/RequestHandler.class.php (158): wcf\http\Pipeline->process(…)
/acp/index.php (10): wcf\system\request\RequestHandler->handle(…)
======
Error Class: CuyZ\Valinor\Utility\PermissiveTypeFound
Error Message: Type `mixed` in `array` is too permissive.
Error Code: 1655231817
File: /lib/system/api/cuyz/valinor/src/Utility/TypeHelper.php (76)
Extra Information: -
Stack Trace:
/lib/system/api/cuyz/valinor/src/Mapper/Object/Factory/StrictTypesObjectBuilderFactory.php (26): CuyZ\Valinor\Utility\TypeHelper::checkPermissiveType(…)
/lib/system/api/cuyz/valinor/src/Mapper/Object/Factory/CacheObjectBuilderFactory.php (30): CuyZ\Valinor\Mapper\Object\Factory\StrictTypesObjectBuilderFactory->for(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/ObjectNodeBuilder.php (38): CuyZ\Valinor\Mapper\Object\Factory\CacheObjectBuilderFactory->for(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/CasterNodeBuilder.php (24): CuyZ\Valinor\Mapper\Tree\Builder\ObjectNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/UnionNodeBuilder.php (33): CuyZ\Valinor\Mapper\Tree\Builder\CasterNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/InterfaceNodeBuilder.php (64): CuyZ\Valinor\Mapper\Tree\Builder\UnionNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/CasterProxyNodeBuilder.php (28): CuyZ\Valinor\Mapper\Tree\Builder\InterfaceNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/IterableNodeBuilder.php (26): CuyZ\Valinor\Mapper\Tree\Builder\CasterProxyNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/StrictNodeBuilder.php (36): CuyZ\Valinor\Mapper\Tree\Builder\IterableNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/ErrorCatcherNodeBuilder.php (33): CuyZ\Valinor\Mapper\Tree\Builder\StrictNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/RootNodeBuilder.php (16): CuyZ\Valinor\Mapper\Tree\Builder\ErrorCatcherNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/TypeTreeMapper.php (47): CuyZ\Valinor\Mapper\Tree\Builder\RootNodeBuilder->build(…)
/lib/system/api/cuyz/valinor/src/Mapper/TypeTreeMapper.php (27): CuyZ\Valinor\Mapper\TypeTreeMapper->node(…)
/lib/system/package/license/LicenseApi.class.php (47): CuyZ\Valinor\Mapper\TypeTreeMapper->map(…)
/lib/system/package/license/LicenseApi.class.php (81): wcf\system\package\license\LicenseApi::parseLicenseData(…)
/lib/system/package/license/LicenseApi.class.php (122): wcf\system\package\license\LicenseApi::fetchFromRemote(…)
/lib/system/acp/dashboard/box/ExpiringLicensesAcpDashboardBox.class.php (64): wcf\system\package\license\LicenseApi->getUpToDateLicenseData(…)
/lib/system/acp/dashboard/box/ExpiringLicensesAcpDashboardBox.class.php (38): wcf\system\acp\dashboard\box\ExpiringLicensesAcpDashboardBox->getLicenseData(…)
/lib/system/acp/dashboard/box/ExpiringLicensesAcpDashboardBox.class.php (32): wcf\system\acp\dashboard\box\ExpiringLicensesAcpDashboardBox->getExpiredLicenses(…)
/lib/system/acp/dashboard/AcpDashboard.class.php (55): wcf\system\acp\dashboard\box\ExpiringLicensesAcpDashboardBox->hasContent(…)
[internal function] (?): wcf\system\acp\dashboard\AcpDashboard::wcf\system\acp\dashboard\{closure}(…)
/lib/system/acp/dashboard/AcpDashboard.class.php (55): array_filter(…)
/acp/templates/compiled/0_wcf_1_index.php (961): wcf\system\acp\dashboard\AcpDashboard->getVisibleBoxes(…)
/lib/system/template/TemplateEngine.class.php (457): include(…)
/lib/page/AbstractPage.class.php (372): wcf\system\template\TemplateEngine->display(…)
/lib/acp/page/IndexPage.class.php (77): wcf\page\AbstractPage->show(…)
/lib/page/AbstractPage.class.php (124): wcf\acp\page\IndexPage->show(…)
/lib/system/request/Request.class.php (50): wcf\page\AbstractPage->__run(…)
/lib/http/middleware/HandleValinorMappingErrors.class.php (35): wcf\system\request\Request->handle(…)
/lib/system/request/RequestHandler.class.php (158): wcf\http\Pipeline->process(…)
/acp/index.php (10): wcf\system\request\RequestHandler->handle(…)