Skip to content

Commit e87187f

Browse files
committed
ClassType::getNamespace() is softly deprecated. An object can be in multiple namespaces.
1 parent c344d70 commit e87187f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PhpGenerator/ClassType.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ public function __toString(): string
128128
}
129129

130130

131+
/**
132+
* Deprecated: an object can be in multiple namespaces.
133+
* @deprecated
134+
*/
131135
public function getNamespace(): ?PhpNamespace
132136
{
133137
return $this->namespace;

0 commit comments

Comments
 (0)