hook_critical_css_file_paths_suggestion_alter type hint is wrong

Created on 13 June 2024, 5 months ago

Problem/Motivation

The $entity argument of the hook_critical_css_file_paths_suggestion_alter() function has ContentEntityInterface as typehint. However, in practice, NULL can also be passed as argument.

Proposed resolution

Expand the typehint.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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