Skip to content

Issue on associative array#15

Description

@mitelg

I am not sure, why this happens. it seems, that the array shape defined as return type is not matching what is really returned. but the hint is not really pointing to the right place, I guess 馃

see https://github.com/shopware/shopware/blob/trunk/src/Core/Framework/DataAbstractionLayer/AttributeEntityCompiler.php#L219

PHP Fatal error: Uncaught TypePHP\Exception\TypeError: Shopware\Core\Framework\DataAbstractionLayer\AttributeEntityCompiler::parseField(): Return value must be of type (array{type: string, name: string, class: class-string<Shopware\Core\Framework\DataAbstractionLayer\Field\Field>, flags: array<string, array{class: string, args?: (array<string, (string | bool | float | null)> | list)}>, translated: bool, args: list<(string | int | false)>} | null), associative array (key 'type') returned in /home/runner/work/shopware/shopware/src/Core/Framework/DataAbstractionLayer/AttributeEntityCompiler.php:237

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions