toInt vs toNumber

Created on 7 December 2023, about 1 year ago

Problem/Motivation

On load of Mass contact we were getting an error.

Error: Call to undefined method Drupal\Component\Utility\Bytes::toInt() in Drupal\mass_contact\Form\MassContactForm->form() (line 308 of /mnt/www/html/THEME/docroot/modules/contrib/mass_contact/src/Form/MassContactForm.php).

Line 308 contains

'file_validate_size' => [Bytes::toInt($this->config->get('max_filesize'))],

Steps to reproduce

Tried to send email

Proposed resolution

Update toInt to toNumber

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jmester13

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024