---
title: "Deprecation: #85553 - PageRepository language-related methods use null as default value"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-85553"
source: "Changelog/9.4/Deprecation-85553-PageRepositoryLanguage-relatedMethodsUseNullAsDefaultValue.rst"
modified: "2026-09-14T09:47:36+00:00"
---

# Deprecation: #85553 - PageRepository language-related methods use null as default value

See [forge#85553](https://forge.typo3.org/issues/85553)

## Description

The second parameter of the following methods now have a different default value (`null`) than
before (`-1`), to detect if the parameter is omitted or passed in explicitly:

-   `TYPO3\CMS\Frontend\Page\PageRepository->getPageOverlay()`
-   `TYPO3\CMS\Frontend\Page\PageRepository->getPagesOverlay()`

## Impact

Calling one of these methods with the second argument with `-1` will trigger a PHP `E_USER_DEPRECATED` error.

## Affected Installations

TYPO3 installations with custom extensions related to language handling.

## Migration

In the unlikely case of directly calling these methods with `-1`, it is recommended to remove
the second (optional) parameter completely, which will work in TYPO3 v8, TYPO3 v9 and in TYPO3 v10.
