Skip to content

Lazy initialization should (probably) be denied if a value holder already contains a value #16

Description

@Ocramius

Currently, lazy initialization happens through following pseudo code:

$this->initializer && $this->initializer->__invoke();

It could be enhanced by using following code:

null !== $this->wrapped && $this->initializer && $this->initializer->__invoke();

This disallows invalid usage of the initializer

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions