-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
backdrop/backdrop
#5186Description
Description of the bug
As I already suspected: some added type hints might cause trouble.
Follow up to coding standard fixes in core/includes/c* (common.inc)
Steps To Reproduce
- Generate a bunch of nodes with devel
- Create a view of teasers but suppress link display
- Save it and try to preview or visit the page
Actual behavior
TypeError: hide(): Argument #1 ($element) must be of type array, null given, called in .../core/modules/node/templates/node.tpl.php on line 109 in hide() (line 7261 of ...core/includes/common.inc).
hide(): Argument #1 ($element) must be of type array, null given, called in ...core/modules/node/templates/node.tpl.php on line 109
The view (page) is broken.
Expected behavior
No type error.
Additional information
Add any other information that could help, such as:
- Backdrop CMS version: latest dev
- PHP version: 8.5
Caused by Issue: #7031: Coding standards - core/includes/c* - merged only recently, so not released, yet.
PR was: backdrop/backdrop#5170
We need to fix doc block and type hint. Element can be null (in this case caused by calling hide() in a template in combination with suppressed links).
Reactions are currently unavailable