Commit bbdf85c9 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Frank Nägler
Browse files

[BUGFIX] Cast floor’ed division to int

The division is rounded by a `floor()` call. Since `floor()` returns a
value of type `double`, the result must get casted to an integer to have
the strict comparisons functional again.

Resolves: #84782
Related: #83556
Releases: master
Change-Id: Ief5d154f0447d2826c013c8cadb792ceb2288320
Reviewed-on: https://review.typo3.org/56726


Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
parent 931f50c0
......@@ -341,7 +341,7 @@ abstract class AbstractFormElement extends AbstractNode
*/
protected function calculateColumnMarkup(int $cols): array
{
$colWidth = floor(12 / $cols);
$colWidth = (int)floor(12 / $cols);
$colClass = 'col-md-12';
$colClear = [];
if ($colWidth === 6) {
......
Supports Markdown
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