Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Oct 7, 2021
1 parent 10d6fb4 commit dc53fe1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/NodeTypeResolver/NodeTypeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\Return_;
use PHPStan\Analyser\Scope;
use PHPStan\Reflection\ClassReflection;
use PHPStan\Reflection\ReflectionProvider;
use PHPStan\Type\Accessory\NonEmptyArrayType;
use PHPStan\Type\ArrayType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DFactory {}
class ClassStringArrayItem
{
/**
* @return array<string, mixed>
* @return array<string, mixed[]>
*/
public function getData()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DFactory {}
class ClassStringArrayItem2
{
/**
* @return array<int, class-string>
* @return class-string[]
*/
public function getData()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public function normalize(Type $type): ArrayType | UnionType | Type
});

if ($type instanceof UnionType) {
return $type;
// Oreturn $this->resolveClassStringInUnionType($type);
return $this->resolveClassStringInUnionType($type);
}

if ($type instanceof ArrayType && $type->getKeyType() instanceof UnionType) {
Expand Down

0 comments on commit dc53fe1

Please sign in to comment.