Skip to content

Commit 0d38f4f

Browse files
committed
Remove unused shouldGeneralizeInferredType method from template type classes
1 parent 8bb2a20 commit 0d38f4f

10 files changed

+0
-50
lines changed

src/Type/Generic/TemplateArrayType.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,4 @@ public function __construct(
3535
$this->default = $default;
3636
}
3737

38-
protected function shouldGeneralizeInferredType(): bool
39-
{
40-
return false;
41-
}
42-
4338
}

src/Type/Generic/TemplateBooleanType.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,4 @@ public function __construct(
3535
$this->default = $default;
3636
}
3737

38-
protected function shouldGeneralizeInferredType(): bool
39-
{
40-
return false;
41-
}
42-
4338
}

src/Type/Generic/TemplateConstantArrayType.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,4 @@ public function __construct(
3535
$this->default = $default;
3636
}
3737

38-
protected function shouldGeneralizeInferredType(): bool
39-
{
40-
return false;
41-
}
42-
4338
}

src/Type/Generic/TemplateConstantIntegerType.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,4 @@ public function __construct(
3535
$this->default = $default;
3636
}
3737

38-
protected function shouldGeneralizeInferredType(): bool
39-
{
40-
return false;
41-
}
42-
4338
}

src/Type/Generic/TemplateConstantStringType.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,4 @@ public function __construct(
3535
$this->default = $default;
3636
}
3737

38-
protected function shouldGeneralizeInferredType(): bool
39-
{
40-
return false;
41-
}
42-
4338
}

src/Type/Generic/TemplateFloatType.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,4 @@ public function __construct(
3535
$this->default = $default;
3636
}
3737

38-
protected function shouldGeneralizeInferredType(): bool
39-
{
40-
return false;
41-
}
42-
4338
}

src/Type/Generic/TemplateIntegerType.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,4 @@ public function __construct(
3535
$this->default = $default;
3636
}
3737

38-
protected function shouldGeneralizeInferredType(): bool
39-
{
40-
return false;
41-
}
42-
4338
}

src/Type/Generic/TemplateKeyOfType.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,4 @@ protected function getResult(): Type
4949
);
5050
}
5151

52-
protected function shouldGeneralizeInferredType(): bool
53-
{
54-
return false;
55-
}
56-
5752
}

src/Type/Generic/TemplateObjectShapeType.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,4 @@ public function __construct(
3535
$this->default = $default;
3636
}
3737

38-
protected function shouldGeneralizeInferredType(): bool
39-
{
40-
return false;
41-
}
42-
4338
}

src/Type/Generic/TemplateStringType.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,4 @@ public function __construct(
3535
$this->default = $default;
3636
}
3737

38-
protected function shouldGeneralizeInferredType(): bool
39-
{
40-
return false;
41-
}
42-
4338
}

0 commit comments

Comments
 (0)