Skip to content

ClassType->getNamespace() should not be deprecated #134

@riki137

Description

@riki137

I can't find a substitution for this piece of code without using the getNamespace() method:

$class = ClassType::from($myClass, true);
$namespace = $class->getNamespace();
$namespace->addUse(DateTimeInterface::class);

Alternative method should at least be mentioned in documention.

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