[TASK] Deprecate -1 in language-related calls of PageRepository
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Deprecation-85553-PageRepositoryLanguage-relatedMethodsUseNullAsDefaultValue.rst
1 .. include:: ../../Includes.txt
2
3 =======================================================================================
4 Deprecation: #85553 - PageRepository language-related methods use null as default value
5 =======================================================================================
6
7 See :issue:`85553`
8
9 Description
10 ===========
11
12 The second parameter of the following mwthods now has a different default value (:php:`null`) than
13 before (:php:`-1`), to detect if the parameter is omitted or passed in explicitly:
14
15 * :php:`TYPO3\CMS\Frontend\Page\PageRepository->getPageOverlay()`
16 * :php:`TYPO3\CMS\Frontend\Page\PageRepository->getPagesOverlay()`
17
18
19 Impact
20 ======
21
22 Calling one of these methods with the second argument with :php:`-1` will trigger a deprecation
23 warning.
24
25
26 Affected Installations
27 ======================
28
29 TYPO3 installations with custom extensions related to language handling.
30
31
32 Migration
33 =========
34
35 In the unlikely case of directly calling this method with :php:`-1`, it is recommended to remove
36 the second (optional) parameter completely, which will work in TYPO3 v8, v9 and in TYPO3 v10.
37
38 .. index:: Frontend, PHP-API, NotScanned, ext:frontend