Skip to content

Nette DI: suspicious dumping of objects when generating the container  #306

Closed
@Gappa

Description

@Gappa

Version: 3.2.0

Bug Description

User Notice
Nette DI: suspicious dumping of objects TestExtensionConfigDTO when generating the container

Steps To Reproduce

final class TestExtensionConfigDTO
{
	// empty class is enough 
}


final class TestExtension extends \Nette\DI\CompilerExtension
{
	public function getConfigSchema(): Schema
	{
		return Expect::from(new TestExtensionConfigDTO);
	}
}
extensions:
	- TestExtension

Expected Behavior

No error message is shown or a message that is better at explaining what is suspicious about the object/class and how to fix it.

Possible Solution

N/A


I'm not really sure what to do about this or what actually is the problem - I'm using objects like this:

Edit - relevant commit:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions