Skip to content

Commit

Permalink
Merge pull request #447 from b13/bugfix/issue-443
Browse files Browse the repository at this point in the history
[BUGFIX] avoid casting large integer
  • Loading branch information
achimfritz committed Oct 16, 2023
2 parents ef7afcf + fb8656f commit 94f595e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Classes/Backend/Grid/ContainerGridColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ public function __construct(
$this->newContentElementAtTopTarget = $newContentElementAtTopTarget;
}

public function getDataColPos(): int
public function getDataColPos(): string
{
return (int)($this->getContainerUid() . self::CONTAINER_COL_POS_DELIMITER_V12 . $this->getColumnNumber());
// we return a string because of 32-bit system PHP_INT_MAX
return (string)$this->getContainerUid() . (string)self::CONTAINER_COL_POS_DELIMITER_V12 . (string)$this->getColumnNumber();
}

public function getContainerUid(): int
Expand Down

0 comments on commit 94f595e

Please sign in to comment.