Similar to T173848, output from From https://github.com/sstalle/php7cc
Done for extensions in 1.31.0-wmf.2
File: /home/reedy/git/mediawiki/core/extensions/EventLogging/includes/JsonSchema.php > Line 63: [Warning] Function argument(s) returned by "func_get_args" might have been modified func_get_args(); File: /home/reedy/git/mediawiki/core/extensions/EventLogging/includes/ApiJsonSchema.php > Line 133: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($v as &$properties) { } File: /home/reedy/git/mediawiki/core/extensions/Flow/includes/Data/Storage/RevisionStorage.php > Line 324: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($source as &$row) { } File: /home/reedy/git/mediawiki/core/extensions/Flow/includes/Repository/TreeRepository.php > Line 365: [Warning] Possible array element creation during by-reference assignment $identityMap[$parent->getAlphadecimal()]['children'][$child] =& $identityMap[$child]; File: /home/reedy/git/mediawiki/core/extensions/Gadgets/api/ApiQueryGadgets.php > Line 178: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($data as $key => &$value) { } File: /home/reedy/git/mediawiki/core/extensions/Cognate/src/StringHasher.php > Line 61: [Error] Bitwise shift by 32 bits hexdec($hexhi) << 32; File: /home/reedy/git/mediawiki/core/extensions/DonationInterface/gateway_common/GatewayPage.php > Line 578: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($fieldRules as &$rule) { } File: /home/reedy/git/mediawiki/core/extensions/DonationInterface/gateway_common/gateway.adapter.php > Line 3312: [Warning] Indirect variable, property or method access ${$var[$key]}; > Line 3316: [Warning] Indirect variable, property or method access ${$var[$subkey]}; > Line 3317: [Warning] Indirect variable, property or method access ${$var[$subkey][$subvalue]}; File: /home/reedy/git/mediawiki/core/extensions/Kartographer/includes/DataModuleLinks.php > Line 44: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($service->links as &$link) { } File: /home/reedy/git/mediawiki/core/extensions/Wikibase/lib/includes/Store/GenericEntityInfoBuilder.php > Line 158: [Warning] Possible array element creation during by-reference assignment $this->entityInfo[$idString] =& $this->entityInfo[$targetKey]; File: /home/reedy/git/mediawiki/core/extensions/Wikibase/lib/includes/Serialization/CallbackFactory.php > Line 55: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($snakGroup as &$snak) { } File: /home/reedy/git/mediawiki/core/extensions/Wikibase/repo/tests/phpunit/includes/Api/SetSiteLinkTest.php > Line 398: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($site['badges'] as &$dummy) { } File: /home/reedy/git/mediawiki/core/extensions/Wikibase/repo/tests/phpunit/includes/Api/GetClaimsTest.php > Line 170: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($claimsByProperty as &$claimArray) { } File: /home/reedy/git/mediawiki/core/extensions/Wikibase/repo/tests/phpunit/includes/Api/EntityTestHelper.php > Line 428: [Warning] Possible adding to array on the last iteration of a by-reference foreach loop $data[$newKey] = $value; File: /home/reedy/git/mediawiki/core/extensions/Wikibase/repo/tests/phpunit/includes/Api/SetReferenceTest.php > Line 214: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($propertyGroup as &$snak) { } File: /home/reedy/git/mediawiki/core/extensions/Wikibase/repo/tests/phpunit/includes/Parsers/MediaWikiNumberUnlocalizerTest.php > Line 158: [Warning] String containing number in hexadecimal notation '0x20'; File: /home/reedy/git/mediawiki/core/extensions/Scribunto/tests/phpunit/engines/LuaCommon/UstringLibraryTest.php > Line 56: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($chars as &$c) { } File: /home/reedy/git/mediawiki/core/extensions/Wikidata/vendor/wikibase/data-model-services/tests/unit/DataValue/ValuesFinderTest.php > Line 146: [Warning] Function argument(s) returned by "func_get_args" might have been modified func_get_args(); File: /home/reedy/git/mediawiki/core/extensions/Wikidata/vendor/wikimedia/purtle/src/RdfWriterBase.php > Line 206: [Warning] Possible object property creation during by-reference assignment $writer->prefixes =& $this->prefixes; File: /home/reedy/git/mediawiki/core/extensions/Wikidata/vendor/data-values/common/tests/ValueParsers/FloatParserTest.php > Line 80: [Warning] String containing number in hexadecimal notation '0x20'; File: /home/reedy/git/mediawiki/core/extensions/Wikidata/vendor/data-values/common/tests/ValueParsers/IntParserTest.php > Line 69: [Warning] String containing number in hexadecimal notation '0x20'; File: /home/reedy/git/mediawiki/core/extensions/Wikidata/vendor/data-values/data-values/tests/phpunit/NumberValueTest.php > Line 52: [Warning] String containing number in hexadecimal notation '0x20'; File: /home/reedy/git/mediawiki/core/extensions/Wikidata/extensions/Wikibase/lib/includes/Store/GenericEntityInfoBuilder.php > Line 158: [Warning] Possible array element creation during by-reference assignment $this->entityInfo[$idString] =& $this->entityInfo[$targetKey]; File: /home/reedy/git/mediawiki/core/extensions/Wikidata/extensions/Wikibase/lib/includes/Serialization/CallbackFactory.php > Line 55: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($snakGroup as &$snak) { } File: /home/reedy/git/mediawiki/core/extensions/Wikidata/extensions/Wikibase/repo/tests/phpunit/includes/Api/SetSiteLinkTest.php > Line 398: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($site['badges'] as &$dummy) { } File: /home/reedy/git/mediawiki/core/extensions/Wikidata/extensions/Wikibase/repo/tests/phpunit/includes/Api/GetClaimsTest.php > Line 170: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($claimsByProperty as &$claimArray) { } File: /home/reedy/git/mediawiki/core/extensions/Wikidata/extensions/Wikibase/repo/tests/phpunit/includes/Api/EntityTestHelper.php > Line 428: [Warning] Possible adding to array on the last iteration of a by-reference foreach loop $data[$newKey] = $value; File: /home/reedy/git/mediawiki/core/extensions/Wikidata/extensions/Wikibase/repo/tests/phpunit/includes/Api/SetReferenceTest.php > Line 214: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($propertyGroup as &$snak) { } File: /home/reedy/git/mediawiki/core/extensions/Wikidata/extensions/Wikibase/repo/tests/phpunit/includes/Parsers/MediaWikiNumberUnlocalizerTest.php > Line 158: [Warning] String containing number in hexadecimal notation '0x20'; File: /home/reedy/git/mediawiki/core/extensions/CirrusSearch/includes/SearchConfig.php > Line 214: [Warning] Function argument(s) returned by "func_get_args" might have been modified func_get_args(); File: /home/reedy/git/mediawiki/core/extensions/CentralNotice/tests/CentralNoticeTestFixtures.php > Line 108: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($campaign['banners'] as &$banner) { } > Line 143: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($context_and_output['choices'] as &$choice) { } > Line 192: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($campaign['banners'] as &$banner) { } File: /home/reedy/git/mediawiki/core/extensions/CentralNotice/includes/AllocationCalculator.php > Line 133: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($campaignsAtThisPriority as &$campaign) { } > Line 166: [Warning] Nested by-reference foreach loop, make sure that array modifications (if any) do what you expect foreach ($campaignsAtThisPriority as $i => &$campaign) { }