Skip to content

Commit

Permalink
Remove unused $explicitMixedForGlobalVariables arg from `MutatingSc…
Browse files Browse the repository at this point in the history
…ope`
  • Loading branch information
herndlm committed Nov 20, 2022
1 parent 7fa580b commit 8c5fe5c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/Analyser/DirectInternalScopeFactory.php
Expand Up @@ -34,7 +34,6 @@ public function __construct(
private bool $treatPhpDocTypesAsCertain,
private PhpVersion $phpVersion,
private bool $explicitMixedInUnknownGenericNew,
private bool $explicitMixedForGlobalVariables,
private ConstantResolver $constantResolver,
)
{
Expand Down Expand Up @@ -103,7 +102,6 @@ public function create(
$parentScope,
$nativeTypesPromoted,
$this->explicitMixedInUnknownGenericNew,
$this->explicitMixedForGlobalVariables,
);
}

Expand Down
4 changes: 0 additions & 4 deletions src/Analyser/LazyInternalScopeFactory.php
Expand Up @@ -22,8 +22,6 @@ class LazyInternalScopeFactory implements InternalScopeFactory

private bool $explicitMixedInUnknownGenericNew;

private bool $explicitMixedForGlobalVariables;

/**
* @param class-string $scopeClass
*/
Expand All @@ -34,7 +32,6 @@ public function __construct(
{
$this->treatPhpDocTypesAsCertain = $container->getParameter('treatPhpDocTypesAsCertain');
$this->explicitMixedInUnknownGenericNew = $this->container->getParameter('featureToggles')['explicitMixedInUnknownGenericNew'];
$this->explicitMixedForGlobalVariables = $this->container->getParameter('featureToggles')['explicitMixedForGlobalVariables'];
}

/**
Expand Down Expand Up @@ -100,7 +97,6 @@ public function create(
$parentScope,
$nativeTypesPromoted,
$this->explicitMixedInUnknownGenericNew,
$this->explicitMixedForGlobalVariables,
);
}

Expand Down
2 changes: 0 additions & 2 deletions src/Analyser/MutatingScope.php
Expand Up @@ -190,7 +190,6 @@ public function __construct(
private ?Scope $parentScope = null,
private bool $nativeTypesPromoted = false,
private bool $explicitMixedInUnknownGenericNew = false,
private bool $explicitMixedForGlobalVariables = false,
)
{
if ($namespace === '') {
Expand Down Expand Up @@ -2150,7 +2149,6 @@ public function doNotTreatPhpDocTypesAsCertain(): Scope
$this->parentScope,
false,
$this->explicitMixedInUnknownGenericNew,
$this->explicitMixedForGlobalVariables,
);
}

Expand Down
1 change: 0 additions & 1 deletion src/Testing/PHPStanTestCase.php
Expand Up @@ -178,7 +178,6 @@ public function createScopeFactory(ReflectionProvider $reflectionProvider, TypeS
$this->shouldTreatPhpDocTypesAsCertain(),
$container->getByType(PhpVersion::class),
$container->getParameter('featureToggles')['explicitMixedInUnknownGenericNew'],
$container->getParameter('featureToggles')['explicitMixedForGlobalVariables'],
$constantResolver,
),
$container->getParameter('featureToggles')['explicitMixedForGlobalVariables'],
Expand Down

0 comments on commit 8c5fe5c

Please sign in to comment.