diff --git a/src/PseudoTypes/False_.php b/src/PseudoTypes/False_.php index 871c1720..daa73174 100644 --- a/src/PseudoTypes/False_.php +++ b/src/PseudoTypes/False_.php @@ -17,8 +17,6 @@ use phpDocumentor\Reflection\Type; use phpDocumentor\Reflection\Types\Boolean; -use function class_alias; - /** * Value Object representing the PseudoType 'False', which is a Boolean type. * @@ -36,5 +34,3 @@ public function __toString(): string return 'false'; } } - -class_alias(False_::class, 'phpDocumentor\Reflection\Types\False_', false); diff --git a/src/PseudoTypes/True_.php b/src/PseudoTypes/True_.php index c9ad1cb1..a8c18367 100644 --- a/src/PseudoTypes/True_.php +++ b/src/PseudoTypes/True_.php @@ -17,8 +17,6 @@ use phpDocumentor\Reflection\Type; use phpDocumentor\Reflection\Types\Boolean; -use function class_alias; - /** * Value Object representing the PseudoType 'False', which is a Boolean type. * @@ -36,5 +34,3 @@ public function __toString(): string return 'true'; } } - -class_alias(True_::class, 'phpDocumentor\Reflection\Types\True_', false); diff --git a/tests/unit/PseudoTypes/FalseTest.php b/tests/unit/PseudoTypes/FalseTest.php index e97c6f7b..296614c8 100644 --- a/tests/unit/PseudoTypes/FalseTest.php +++ b/tests/unit/PseudoTypes/FalseTest.php @@ -40,16 +40,4 @@ public function testFalseStringifyCorrectly(): void $this->assertSame('false', (string) $false); } - - /** - * @covers \phpDocumentor\Reflection\PseudoTypes\False_ - */ - public function testCanBeInstantiatedUsingDeprecatedFqsen(): void - { - $false = new \phpDocumentor\Reflection\Types\False_(); - - $this->assertSame('false', (string) $false); - $this->assertInstanceOf(False_::class, $false); - $this->assertInstanceOf(\phpDocumentor\Reflection\Types\False_::class, $false); - } } diff --git a/tests/unit/PseudoTypes/TrueTest.php b/tests/unit/PseudoTypes/TrueTest.php index ec610b23..5dba2662 100644 --- a/tests/unit/PseudoTypes/TrueTest.php +++ b/tests/unit/PseudoTypes/TrueTest.php @@ -40,16 +40,4 @@ public function testTrueStringifyCorrectly(): void $this->assertSame('true', (string) $true); } - - /** - * @covers \phpDocumentor\Reflection\PseudoTypes\True_ - */ - public function testCanBeInstantiatedUsingDeprecatedFqsen(): void - { - $true = new \phpDocumentor\Reflection\Types\True_(); - - $this->assertSame('true', (string) $true); - $this->assertInstanceOf(True_::class, $true); - $this->assertInstanceOf(\phpDocumentor\Reflection\Types\True_::class, $true); - } }