Skip to content

[TypeDeclaration] decouple new level for easier use #1321

@TomasVotruba

Description

@TomasVotruba

Extend via constructor type resolving

new User('string name'); 

new User('again string'); 

class User
{
-   public function __construct($name)
+   public function __construct(string $name)
    {
    }
}

Metadata

Metadata

Assignees

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