($bundle_id) must be of type string, int given

Created on 19 February 2024, 10 months ago
Updated 6 April 2024, 9 months ago

Problem/Motivation

Drupal throws the following error

TypeError: Drupal\graphql_compose\Plugin\GraphQLCompose\GraphQLComposeEntityTypeBase::getBundle(): Argument #1 ($bundle_id) must be of type string, int given, called in /app/web/modules/contrib/graphql_compose/src/Plugin/GraphQLCompose/FieldUnionTrait.php on line 221 in Drupal\graphql_compose\Plugin\GraphQLCompose\GraphQLComposeEntityTypeBase->getBundle() (line 189 of /app/web/modules/contrib/graphql_compose/src/Plugin/GraphQLCompose/GraphQLComposeEntityTypeBase.php).

Seems like some bundle ids are `int` not only string type.

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇨🇷Costa Rica mcortes19

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024