Skip to content

Commit

Permalink
use scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jun 30, 2024
1 parent 554cad9 commit c053b91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/StaticTypeMapper/Naming/NameScopeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function createNameScopeFromNodeWithoutTemplateTypes(Node $node): NameSco
public function createNameScopeFromNode(Node $node): NameScope
{
$nameScope = $this->createNameScopeFromNodeWithoutTemplateTypes($node);
$templateTypeMap = $this->templateTemplateTypeMap($node);
// $templateTypeMap = $this->templateTemplateTypeMap($node);
/** @var non-empty-string|null $namespace */
$namespace = $nameScope->getNamespace();

Expand All @@ -75,7 +75,8 @@ public function createNameScopeFromNode(Node $node): NameScope
$nameScope->getUses(),
$nameScope->getClassName(),
null,
$templateTypeMap
null
// $templateTypeMap
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Issues/IssueConditionalType/Fixture/fixture.php.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Fixture
/**
* @template TValue of array<array|scalar>|scalar
*
* @return (TValue is (bool | float | int | string) ? (array | bool | float | int | string) : array<(array | bool | float | int | string)>)
* @return (TValue is scalar ? array|scalar : array<array|scalar>)
*/
public function resolveValue()
{
Expand Down

0 comments on commit c053b91

Please sign in to comment.