#89531Regression: "Show" in context menu for pages always shows root page on databases not casting return types
Description
Since #56351 in V9.5.10 the “Show” link in context menus for pages is not opening the selected page when a database or database driver is used returning only strings, like the default settings of the “pdo_mysql” driver.
The following line from the method getPreviewPid in Web/typo3/sysext/backend/Classes/ContextMenu/ItemProviders/PageProvider.php will always return the second value, since $this->record['sys_language_uid'] is not type casted to an integer before doing the strict comparison, which means always false:
return (int)$this->record['sys_language_uid'] === 0 ? (int)$this->record['uid'] : (int)$this->record['l10n_parent'];