From 0e829c3174b4602bcf47cdfcc196edb08b543447 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 17 Feb 2025 15:00:00 +0000 Subject: [PATCH] [generator] remove unused function I'm planning on refactoring this code, let's get a trivial change out of the way first --- generator/src/PhpStanFunctions/PhpStanType.php | 5 ----- generator/tests/PhpStanFunctions/PhpStanTypeTest.php | 1 - 2 files changed, 6 deletions(-) diff --git a/generator/src/PhpStanFunctions/PhpStanType.php b/generator/src/PhpStanFunctions/PhpStanType.php index 9f112328..3e897418 100644 --- a/generator/src/PhpStanFunctions/PhpStanType.php +++ b/generator/src/PhpStanFunctions/PhpStanType.php @@ -214,11 +214,6 @@ public function isNullable(): bool return $this->nullable; } - public function isFalsable(): bool - { - return $this->falsable; - } - /** * @return array */ diff --git a/generator/tests/PhpStanFunctions/PhpStanTypeTest.php b/generator/tests/PhpStanFunctions/PhpStanTypeTest.php index 0842ef90..3c7df015 100644 --- a/generator/tests/PhpStanFunctions/PhpStanTypeTest.php +++ b/generator/tests/PhpStanFunctions/PhpStanTypeTest.php @@ -88,7 +88,6 @@ public function testParenthesisOutsideOfCallable(): void public function testFalsable(): void { $param = new PhpStanType('string|false'); - $this->assertEquals(true, $param->isFalsable()); $this->assertEquals('string|false', $param->getDocBlockType()); $this->assertEquals('string', $param->getSignatureType()); }