Review usage of ctype_digit in the code base

Created on 19 January 2023, almost 2 years ago
Updated 28 January 2023, almost 2 years ago

Problem/Motivation

When using ctype_digit() #php function, make sure you pass a string argument. The function behaves strange when you pass a integer.

But casting the arg with (string), will lead to a mixed-typed expression.

Here is an example: https://phpstan.org/r/b6730caf-760c-4d0a-8ea2-cf3349255366

📌 Task
Status

Fixed

Version

1.2

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
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