Skip to content

setup:di:compile breaks on 0 indexed object arrays #36

@ddoddsr

Description

@ddoddsr

Built a new and untouched 2.1.7
Loaded Umc_Base on it
Ran module:enable setup:upgrade

and ran setup:di:compile and received this message

[Exception] Warning: ltrim() expects parameter 1 to be string, array given in /Users/dandodd/Projects/tpmco.dev/setup/src/Magento/Setup/Module/Di/Compiler/Config/Chain/BackslashTrim.php on line 61

This looks like a Magento issue with 0 indexed objects. https://github.com/magento/magento2/issues/8803

I thought about changing the index 0 to 1 and 1 to 2 & etc but that would likely break something else.
What do you think about trying that?

The Umc_Base does run so I build a test Module and enabled upgraded and received this error while compiling
Compilation was started.
Interceptors generation... 4/7 [================>-----------] 57% 3 mins 334.2 MiBMiBB08.2 MiB
[RuntimeException]
Class Tpmco\Test\Model\UploaderPool does not exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions