Problem/Motivation

When opening the cron overview on /admin/config/system/cron/jobs on PHP8.1, the following notice is thrown.
Deprecated function: Implicit conversion from float-string "1640598516.7726" to int loses precision in Drupal\Component\Datetime\DateTimePlus->__call() (line 360 of core/lib/Drupal/Component/Datetime/DateTimePlus.php).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Arkener created an issue. See original summary.

Arkener’s picture

HnLn’s picture

monymirza’s picture

Status: Needs review » Reviewed & tested by the community

Works #2.

solideogloria’s picture

#2 fixes it for me.

3li’s picture

Confirming patch #2 works.

MaxMendez’s picture

Patch #2 fixes it for me, tested on 5 sites.

DieterHolvoet’s picture

Patch #2 fixes the issue for me as well.

cobenash’s picture

Patch #2 works.

Drupal 9.4.3
ultimate cron: 8.x-2.0-alpha5

arthur.baghdasar’s picture

Works for me.

  • Berdir committed 08af29a on 8.x-2.x authored by Arkener
    Issue #3256142 by Arkener: Deprecated function: Implicit conversion from...
Berdir’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

joseph.olstad’s picture

thanks for this one.

joseph.olstad’s picture

@Berdir, can you please tag a 2.0.0-beta1 release ? alpha5 is from 2020, two years old and missing this php 8.1 fix

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.