*/ final class HasOffsetValueTypeTypeMapper implements TypeMapperInterface { /** * @return class-string */ public function getNodeClass() : string { return HasOffsetValueType::class; } /** * @param HasOffsetValueType $type */ public function mapToPHPStanPhpDocTypeNode(Type $type, string $typeKind) : TypeNode { return new ArrayTypeNode(new IdentifierTypeNode('mixed')); } /** * @param HasOffsetValueType $type */ public function mapToPhpParserNode(Type $type, string $typeKind) : ?Node { return new Identifier('array'); } }