[BUGFIX] Replace calls to the deprecated PHP function each() 10/55510/20
authorReiner Teubner <rteubner@me.com>
Wed, 31 Jan 2018 14:30:21 +0000 (15:30 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 6 Feb 2018 10:18:46 +0000 (11:18 +0100)
commit8bcf6b29857944eb381b7a5a5b0e55e3cc06789c
treed6d0e3257846c6d9610a4b1085ab156673f6dd59
parent78980d4c4a149eec05318a77635118d1bbc665e4
[BUGFIX] Replace calls to the deprecated PHP function each()

This patch replaces the calls to the PHP function each() as it is
marked as deprecated in PHP 7.2. Additionally it adds unit tests for
QueryGenerator::getSubscript().

Resolves: #83737
Releases: master, 8.7, 7.6
Change-Id: Ie61a6d44fcdbd4ce6105a6c185085a3a68866fd8
Reviewed-on: https://review.typo3.org/55510
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Reiner Teubner <rteubner@me.com>
Tested-by: Reiner Teubner <rteubner@me.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Tobi Kretschmann <tobi@tobishome.de>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php
typo3/sysext/core/Classes/Database/QueryGenerator.php
typo3/sysext/core/Tests/Unit/Database/QueryGeneratorTest.php [new file with mode: 0644]
typo3/sysext/workspaces/Classes/Service/StagesService.php