Skip to content
Snippets Groups Projects
Commit 5ff079ad authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Stefan Bürk
Browse files

[BUGFIX] Cast `$chars` argument of `fixed_lgd_cs()` to int

Since #97578, `GeneralUtility` is declared strict, potentially breaking
calls to `fixed_lgd_cs()` in at least the "List" module. The argument
`$chars` must be of type int, but sometimes it's a string which breaks
the call of `abs()`.

All calls to this method are adjusted, where required, and the value is
explicitly cast to int.

Resolves: #97887
Related: #97578
Releases: main
Change-Id: I7feed1ae8dbe7cdbc906d73cfbc49f7d9dbeb6fe
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75091


Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent c8d0fc71
No related merge requests found
Showing
with 29 additions and 27 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment