hook_system_breadcrumb_alter contains an unnecessary by reference notation

Created on 6 December 2019, about 5 years ago
Updated 29 August 2024, 4 months ago

The hook hook_system_breadcrumb_alter is documented like this:

function hook_system_breadcrumb_alter(\Drupal\Core\Breadcrumb\Breadcrumb &$breadcrumb, \Drupal\Core\Routing\RouteMatchInterface $route_match, array $context) {

This is unnecessary, as objects (Breadcrumb object in this case) are always passed by reference. This, in turn, ends up in hook_implementations automatically if you are using phpstorm for example.

Let's remove &

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Documentation 

Last updated 1 day ago

No maintainer
Created by

🇳🇴Norway eiriksm Norway

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024