A non-numeric value encountered in picture_background_formatter_generate_background_css() line 143

Created on 22 March 2024, 9 months ago

Problem/Motivation

Line 143 is trying to multiply the $multiplier * 96, the multiplier is not numeric, needs to be cast into an int.

$css .= '@media (-webkit-min-device-pixel-ratio: ' . $multiplier . '), (min-resolution: ' . $multiplier * 96 . 'dpi), (min-resolution: ' . $multiplier . 'dppx) {';

Proposed resolution

cast $multiplier into int where the issue is occurring.

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇨🇷Costa Rica aquaphenix Alajuela

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024