Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
clxmstaab committed Sep 23, 2022
1 parent 901ac31 commit 63c70d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/Analyser/TypeSpecifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public function specifyTypesInCondition(
);
}

return $this->create(
return $this->create(
$exprNode->getArgs()[0]->value,
TypeCombinator::union($objectType, $classStringType),
$context,
Expand Down
2 changes: 0 additions & 2 deletions tests/PHPStan/Analyser/NodeScopeResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1042,8 +1042,6 @@ public function dataFileAsserts(): iterable
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-7963-three.php');
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-8017.php');
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-8004.php');

require_once __DIR__ . '/data/bug-5552.php';
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-5552.php');
}

Expand Down

0 comments on commit 63c70d3

Please sign in to comment.