#9125 closed enhancement (fixed)
ctype_digit(): Argument of type int will be interpreted as string in the future
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 14.0.0 | Priority: | low |
Severity: | trivial | Version: | 12.3.0 |
Component: | Core | Keywords: | has-patch |
Cc: |
Commits (1)
- [13793] Cast values used in the
ctype_digit
function to astring
.… by @espellcaste 12 months ago
Pull Requests
- Loading…
Change History (3)
#1
@
12 months ago
- Milestone changed from Awaiting Review to 14.0.0
- Owner set to espellcaste
- Status changed from new to assigned
- Type changed from defect (bug) to enhancement
This ticket was mentioned in PR #265 on buddypress/buddypress by renatonascalves.
12 months ago
#2
- Keywords has-patch added
Trac ticket: https://buddypress.trac.wordpress.org/ticket/9125
I noticed that some of those values are already integers. But to avoid messing anything up, I opted for a more conservative approach, fixing only the following "issue":
ctype_digit(): Argument of type int will be interpreted as string in the future
Related: https://www.php.net/manual/en/function.ctype-digit.php#refsect1-function.ctype-digit-parameters
Note: See
TracTickets for help on using
tickets.
Thanks! That's an easy fix.