Problem/Motivation

PHP 8: Fatal error: Uncaught TypeError: Illegal offset type
PHP 7: Warning: array_key_exists(): The first argument should be either a string or an integer

Whenever EntityInterface::label() returns a Stringable.
Bug introduced (in 2.0.3) in #3272480: Titles to be replaced while generating segments doesn't work in all the scenarios.

Steps to reproduce

Proposed resolution

Cast the entity label to a string.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#6 easy_breadcrumb-3284417-6.patch862 byteseric_a

Comments

Eric_A created an issue. See original summary.

eric_a’s picture

Issue summary: View changes
eric_a’s picture

Issue summary: View changes
Issue tags: +PHP 8.0
eric_a’s picture

Title: Warning: array_key_exists(): The first argument should be either a string or an integer » Fatal error: Uncaught TypeError (PHP 7: Warning: array_key_exists(): The first argument should be either a string or an integer)
Issue summary: View changes
eric_a’s picture

StatusFileSize
new862 bytes
eric_a’s picture

Status: Active » Needs review
neslee canil pinto’s picture

Status: Needs review » Reviewed & tested by the community

Okay, this issue is present. Thanks for reporting

neslee canil pinto’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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