Skip to content

Commit 6932893

Browse files
committed
Merge branch 2.1.x into 2.2.x
2 parents b2423e9 + 4552caf commit 6932893

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

src/Type/Generic/TemplateBenevolentUnionType.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace PHPStan\Type\Generic;
44

55
use PHPStan\Type\BenevolentUnionType;
6-
use PHPStan\Type\NeverType;
76
use PHPStan\Type\Type;
87

98
/** @api */
@@ -51,9 +50,6 @@ public function withTypes(array $types): self
5150
public function filterTypes(callable $filterCb): Type
5251
{
5352
$result = parent::filterTypes($filterCb);
54-
if ($result instanceof NeverType) {
55-
return $result;
56-
}
5753
if (!$result instanceof TemplateType) {
5854
return TemplateTypeFactory::create(
5955
$this->getScope(),

src/Type/Generic/TemplateUnionType.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace PHPStan\Type\Generic;
44

5-
use PHPStan\Type\NeverType;
65
use PHPStan\Type\Type;
76
use PHPStan\Type\UnionType;
87

@@ -38,9 +37,6 @@ public function __construct(
3837
public function filterTypes(callable $filterCb): Type
3938
{
4039
$result = parent::filterTypes($filterCb);
41-
if ($result instanceof NeverType) {
42-
return $result;
43-
}
4440
if (!$result instanceof TemplateType) {
4541
return TemplateTypeFactory::create(
4642
$this->getScope(),

0 commit comments

Comments
 (0)