fix: #3558621 Use canonical type casts for PHP 8.5 compatibility

Closes #3558621

Merge request reports

Loading