Skip to content

Commit

Permalink
fix unused and CS
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Dec 27, 2021
1 parent a9b1a42 commit 3ae8098
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
use Psalm\Type\Atomic\Scalar;
use Psalm\Type\Atomic\TArray;
use Psalm\Type\Atomic\TDependentListKey;
use Psalm\Type\Atomic\TEmpty;
use Psalm\Type\Atomic\TFalse;
use Psalm\Type\Atomic\TGenericObject;
use Psalm\Type\Atomic\TIntRange;
Expand Down
12 changes: 0 additions & 12 deletions src/Psalm/Internal/Type/TypeCombiner.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
use Psalm\Type\Atomic\TString;
use Psalm\Type\Atomic\TTemplateParam;
use Psalm\Type\Atomic\TTemplateParamClass;
use Psalm\Type\Atomic\TTraitString;
use Psalm\Type\Atomic\TTrue;
use Psalm\Type\Union;
use UnexpectedValueException;
Expand Down Expand Up @@ -1050,17 +1049,6 @@ private static function scrapeStringProperties(

$combination->strings = null;
} else {
$has_non_literal_class_string = false;

$shared_classlikes = $codebase ? self::getSharedTypes($combination, $codebase) : [];

foreach ($combination->strings as $string_type) {
if (!$string_type instanceof TLiteralClassString) {
$has_non_literal_class_string = true;
break;
}
}

$combination->value_types[$type_key] = new TString();
}
} else {
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Psalm\IssueBuffer;
use Psalm\Tests\Internal\Provider\FakeParserCacheProvider;
use Psalm\Type\Union;
use RuntimeException;
use Throwable;

use function array_filter;
Expand Down

0 comments on commit 3ae8098

Please sign in to comment.