Problem

purge_users.install uses the (integer) cast on four lines in purge_users_update_9001(). The (integer) cast alias was deprecated in PHP 8.4 — it triggers a deprecation notice on every status report page load:

Deprecated function: Non-canonical cast (integer) is deprecated, use the (int) cast instead

Solution

Replace all four (integer) casts with (int) in purge_users_update_9001().

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mably created an issue. See original summary.

  • mably committed 34abe7e2 on 5.x
    task: #3578633 Replace deprecated (integer) cast with (int) in...
mably’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • mably committed 2f9cc8d0 on 4.x
    task: #3578633 Replace deprecated (integer) cast with (int) in...

Status: Fixed » Closed (fixed)

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