Skip to content

When Using withPrefix Without Mappers on the Base, a PHP Notice is Generated #7

@jimdelois

Description

@jimdelois
NOTICE: PHP message: PHP Warning:  Invalid argument supplied for foreach() in /app/vendor/improvframework/configuration/src/Configuration.php on line 130

This occurs because the private Configuration::$mappers variable is not correctly initialized to an array. When there are no mappers added to the base Configuration object (which effectively converts it to an array), then the iterating of this null variable causes a PHP warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions