Deprecated function: range(): Passing null to parameter #2 ($end) of type string|int|float is deprecated

Created on 11 August 2025, 6 days ago

Problem/Motivation

Deprecated function: range(): Passing null to parameter #2 ($end) of type string|int|float is deprecated in __TwigTemplate_c3409b517ecc8798025baac944e38cf9->doDisplay() (Zeile 55 in /vendor/twig/twig/src/Environment.php(420) : eval()'d code).

Steps to reproduce

Try adding a layout based on DrowlLayoutsMultiColumnLayout which thereby uses:

  /**
   * Returns the number of columns in this layout.
   *
   * !! Special case: the number is not clearly defined in this workaround class
   * !! here so we return NULL as special case.
   *
   * @var int
   */
  protected $columnCount = NULL;

and does NEVER override that value (like 2 / 3 col do - which are unaffected.

Proposed resolution

Do not show the setting that renders
templates/settings_preview/drowl-layouts-settings-preview-cell-width.html.twig

if columnCount is NULL

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

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