Skip to content

Commit

Permalink
Fix build (#4706)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Aug 7, 2023
1 parent 7342331 commit efdbf98
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Rector\PHPStanStaticTypeMapper\TypeMapper;

use Nette\Utils\Strings;
use PhpParser\Node;
use PhpParser\Node\Name;
use PhpParser\Node\Name\FullyQualified;
use PHPStan\PhpDocParser\Ast\Type\TypeNode;
Expand Down Expand Up @@ -66,7 +67,7 @@ public function mapToPHPStanPhpDocTypeNode(Type $type): TypeNode
/**
* @param ObjectType $type
*/
public function mapToPhpParserNode(Type $type, string $typeKind): null|Name|FullyQualified
public function mapToPhpParserNode(Type $type, string $typeKind): ?Node
{
if ($type instanceof SelfObjectType) {
return new Name('self');
Expand Down

0 comments on commit efdbf98

Please sign in to comment.