Page MenuHomePhabricator

PHP 8.5 CI failure in Kartographer: "Using null as an array offset is deprecated, use an empty string instead"
Closed, ResolvedPublic

Description

00:01:34.565 1) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #0 ('null')
00:01:34.565 Using null as an array offset is deprecated, use an empty string instead
00:01:34.565 
00:01:34.565 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.565 
00:01:34.565 2) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #1 ('[]')
00:01:34.565 Using null as an array offset is deprecated, use an empty string instead
00:01:34.565 
00:01:34.565 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.565 
00:01:34.565 3) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #2 ('{}')
00:01:34.566 Using null as an array offset is deprecated, use an empty string instead
00:01:34.566 
00:01:34.566 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.566 
00:01:34.566 4) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #3 ('{ "type": "…" }')
00:01:34.566 Using null as an array offset is deprecated, use an empty string instead
00:01:34.566 
00:01:34.566 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.566 
00:01:34.566 5) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #4 ('{ "type": "ExternalData" }', 'LogicException')
00:01:34.566 Using null as an array offset is deprecated, use an empty string instead
00:01:34.566 
00:01:34.566 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.566 
00:01:34.566 6) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #5 ('{ "type": "ExternalData", "se... "…" }', 'LogicException')
00:01:34.566 Using null as an array offset is deprecated, use an empty string instead
00:01:34.566 
00:01:34.566 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.566 
00:01:34.566 7) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #6 ('{\n					"type": "ExternalData...n				}', '{\n					"type": "ExternalData...n				}')
00:01:34.566 Using null as an array offset is deprecated, use an empty string instead
00:01:34.566 
00:01:34.566 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.566 
00:01:34.566 8) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #7 ('{\n					"type": "ExternalData...n				}', '{\n					"type": "ExternalData...n				}')
00:01:34.566 Using null as an array offset is deprecated, use an empty string instead
00:01:34.566 
00:01:34.566 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.566 
00:01:34.566 9) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #8 ('{\n					"type": "ExternalData...n				}', '{\n					"type": "ExternalData...n				}')
00:01:34.566 Using null as an array offset is deprecated, use an empty string instead
00:01:34.566 
00:01:34.566 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.566 
00:01:34.566 10) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #9 ('{\n					"type": "ExternalData...n				}', '{\n					"type": "ExternalData...n				}')
00:01:34.567 Using null as an array offset is deprecated, use an empty string instead
00:01:34.567 
00:01:34.567 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.567 
00:01:34.567 11) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #10 ('[ {\n					"type": "ExternalDa...			} ]', null, 'kartographer-error-title')
00:01:34.567 Using null as an array offset is deprecated, use an empty string instead
00:01:34.567 
00:01:34.567 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.567 
00:01:34.567 12) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #11 ('{ "": "…" }', '{ "": "…" }')
00:01:34.567 Using null as an array offset is deprecated, use an empty string instead
00:01:34.567 
00:01:34.567 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.567 
00:01:34.567 13) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #12 ('{ "_a": "…", "b": { "_c": "…"...…" } }', '{ "b": { "d": "…" } }')
00:01:34.567 Using null as an array offset is deprecated, use an empty string instead
00:01:34.567 
00:01:34.567 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.567 
00:01:34.567 14) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #13 ('{ "properties": { "title": { ..."" } }', '{ "properties": {} }')
00:01:34.567 Using null as an array offset is deprecated, use an empty string instead
00:01:34.567 
00:01:34.567 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.567 
00:01:34.568 15) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #14 ('{ "properties": { "title": "*...{} } }', '{ "properties": { "title": "HTML" } }')
00:01:34.568 Using null as an array offset is deprecated, use an empty string instead
00:01:34.568 
00:01:34.568 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130
00:01:34.568 
00:01:34.568 16) Kartographer\Tests\SimpleStyleParserTest::testNormalizeAndSanitize with data set #15 ('{ "properties": { "title": { ... } } }', '{ "properties": { "title": { ... } } }')
00:01:34.568 Using null as an array offset is deprecated, use an empty string instead
00:01:34.568 
00:01:34.568 /workspace/src/extensions/Kartographer/tests/phpunit/SimpleStyleParserTest.php:130

Event Timeline

Change #1248841 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/Kartographer@master] SimpleStyleParserTest: Don't use null as an array offset, for PHP 8.5

https://gerrit.wikimedia.org/r/1248841

Jdforrester-WMF changed the task status from Open to In Progress.Mar 6 2026, 2:38 PM
Jdforrester-WMF claimed this task.

Change #1248841 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] SimpleStyleParserTest: Don't use null as an array offset, for PHP 8.5

https://gerrit.wikimedia.org/r/1248841

Change #1250589 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/Kartographer@REL1_45] SimpleStyleParserTest: Don't use null as an array offset, for PHP 8.5

https://gerrit.wikimedia.org/r/1250589

Change #1250589 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@REL1_45] SimpleStyleParserTest: Don't use null as an array offset, for PHP 8.5

https://gerrit.wikimedia.org/r/1250589

Change #1298379 had a related patch set uploaded (by TheDJ; author: Jforrester):

[mediawiki/extensions/Kartographer@REL1_43] SimpleStyleParserTest: Don't use null as an array offset, for PHP 8.5

https://gerrit.wikimedia.org/r/1298379

Change #1298380 had a related patch set uploaded (by TheDJ; author: Jforrester):

[mediawiki/extensions/Kartographer@REL1_44] SimpleStyleParserTest: Don't use null as an array offset, for PHP 8.5

https://gerrit.wikimedia.org/r/1298380

Change #1298379 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@REL1_43] SimpleStyleParserTest: Don't use null as an array offset, for PHP 8.5

https://gerrit.wikimedia.org/r/1298379

Change #1298380 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@REL1_44] SimpleStyleParserTest: Don't use null as an array offset, for PHP 8.5

https://gerrit.wikimedia.org/r/1298380