Skip to content

Implement new static method for SimpleObject #145

@PandaHugMonster

Description

@PandaHugMonster

Due to architecture of PHP for calling method on the newly create object, you need to wrap it into brackets.

$obj = (new MyObjectClass)->something()->orChained();

This construction is extremely uncomfortable to use, for this purpose new static method should be introduced:

$obj = MyObjectClass::new()->something()->orChained();

Metadata

Metadata

Labels

architectureArchitecture related topicscode qualityCode quality related issue (must not affect architecture)enhancementNew feature or requestleafLeaf ticket is a final non-aggregation typetinyunfinished concept

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions