Problem/Motivation

The flowdrop_trigger module's event type plugin definitions can return a BackedEnum for the "category" key (this is common in Drupal 11 plugins using PHP 8.1+ enums). When sprintf receives a BackedEnum object instead of a string, PHP throws a fatal error because enums can't be implicitly cast to string.

So, any trigger event whose plugin definition uses an enum for category would crash when getCategoryConfigName() is called.

Issue fork flowdrop-3578056

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

gxleano created an issue. See original summary.

gxleano’s picture

Assigned: Unassigned » gxleano

gxleano’s picture

Assigned: gxleano » Unassigned
Status: Active » Needs review
d34dman’s picture

@gxleano, in 1.2.0 this should be fixed. Please review.

d34dman’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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