TypeError: Drupal\auctions_core\Form\BiddersForm::roundCents(): Argument #1 ($num) must be of type float, string given

Created on 21 October 2022, about 2 years ago
Updated 1 November 2023, about 1 year ago

Problem/Motivation

Cannot save bid when running PHP 8+

Steps to reproduce

Add a new bid to an item results in "TypeError: Drupal\auctions_core\Form\BiddersForm::roundCents(): Argument #1 ($num) must be of type float, string given"

Proposed resolution

cast form value as float.

Remaining tasks

Implement

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada sagesolutions

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

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

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024