[BUGFIX] Replace calls to the deprecated PHP function each() 70/55570/4
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:43:03 +0000 (11:43 +0100)
commit923ce4ca613298da244d82db4667776b7ede47b3
tree0675e41c27d9c393cda7ef176cbb480ff48830ee
parent245f0a9f1e404f99b49d93dfc888d3c83137d811
[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/55570
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.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