Skip to content

Commit 8b2806a

Browse files
committed
simplify ExpressionResultTest
1 parent ba52625 commit 8b2806a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/PHPStan/Analyser/ExpressionResultTest.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
use PHPStan\ShouldNotHappenException;
88
use PHPStan\Testing\PHPStanTestCase;
99
use PHPStan\TrinaryLogic;
10-
use PHPStan\Type\ArrayType;
1110
use PHPStan\Type\IntegerType;
12-
use PHPStan\Type\MixedType;
13-
use PHPStan\Type\StringType;
1411
use PHPUnit\Framework\Attributes\DataProvider;
1512
use function count;
1613
use function get_class;
@@ -130,10 +127,7 @@ public function testIsAlwaysTerminating(
130127
/** @var ScopeFactory $scopeFactory */
131128
$scopeFactory = self::getContainer()->getByType(ScopeFactory::class);
132129
$scope = $scopeFactory->create(ScopeContext::create('test.php'))
133-
->assignVariable('string', new StringType(), new StringType(), TrinaryLogic::createYes())
134-
->assignVariable('x', new IntegerType(), new IntegerType(), TrinaryLogic::createYes())
135-
->assignVariable('cond', new MixedType(), new MixedType(), TrinaryLogic::createYes())
136-
->assignVariable('arr', new ArrayType(new MixedType(), new MixedType()), new ArrayType(new MixedType(), new MixedType()), TrinaryLogic::createYes());
130+
->assignVariable('x', new IntegerType(), new IntegerType(), TrinaryLogic::createYes());
137131

138132
$result = $nodeScopeResolver->processExprNode(
139133
$stmt,

0 commit comments

Comments
 (0)