[BUGFIX] Replace calls to the deprecated PHP function each() 69/55569/2
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:32:50 +0000 (11:32 +0100)
commit38d68837650e7b514726c116132b2755d0194268
tree85f168051c37fa8df4c2522901ccfd136de77c34
parent6269d46a4a4ec2f3f8f7cd142b38d10fe476e695
[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/55569
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
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