hook_critical_css_file_paths_suggestion_alter type hint is wrong

Created on 13 June 2024, 15 days ago
Updated 20 June 2024, 7 days 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

RTBC

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.69.0 2024