Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Deprecate -1 in language-related calls of PageRepository
The default value for - PageRepository->getPageOverlay() - PageRepository->getPagesOverlay() should be "null" and not some magic "-1" usage. Resolves: #85553 Releases: master Change-Id: Ic665c4a563e6496678ab944c80901db26f2b72ba Reviewed-on: https://review.typo3.org/57591 Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de> Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de> Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by: Daniel Gorges <daniel.gorges@b13.de> Tested-by: Daniel Gorges <daniel.gorges@b13.de> Reviewed-by: Benni Mack <benni@typo3.org> Tested-by: Benni Mack <benni@typo3.org>
- Loading branch information
Showing
2 changed files
with
56 additions
and
11 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
...eprecation-85553-PageRepositoryLanguage-relatedMethodsUseNullAsDefaultValue.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
======================================================================================= | ||
Deprecation: #85553 - PageRepository language-related methods use null as default value | ||
======================================================================================= | ||
|
||
See :issue:`85553` | ||
|
||
Description | ||
=========== | ||
|
||
The second parameter of the following mwthods now has a different default value (:php:`null`) than | ||
before (:php:`-1`), to detect if the parameter is omitted or passed in explicitly: | ||
|
||
* :php:`TYPO3\CMS\Frontend\Page\PageRepository->getPageOverlay()` | ||
* :php:`TYPO3\CMS\Frontend\Page\PageRepository->getPagesOverlay()` | ||
|
||
|
||
Impact | ||
====== | ||
|
||
Calling one of these methods with the second argument with :php:`-1` will trigger a deprecation | ||
warning. | ||
|
||
|
||
Affected Installations | ||
====================== | ||
|
||
TYPO3 installations with custom extensions related to language handling. | ||
|
||
|
||
Migration | ||
========= | ||
|
||
In the unlikely case of directly calling this method with :php:`-1`, it is recommended to remove | ||
the second (optional) parameter completely, which will work in TYPO3 v8, v9 and in TYPO3 v10. | ||
|
||
.. index:: Frontend, PHP-API, NotScanned, ext:frontend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters