Problem/Motivation

A type error occurs when a bundle has a number-only machine name. This is the same issue as #3387995: TypeError: core_event_dispatcher_entity_create_access(): Argument #3 ($entityBundle) must be of type ?string, int given when entity bundle machine namie is number, but in the 4.x version.

Steps to reproduce

Create a node type called '404'.

Proposed resolution

Cast to a string before assigning to the property.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

DieterHolvoet created an issue. See original summary.

dieterholvoet’s picture

Status: Active » Needs review

el7cosmos made their first commit to this issue’s fork.

el7cosmos’s picture

Version: 4.0.0 » 4.x-dev
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.