Page MenuHomePhabricator

ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead (from Collation/IcuCollation.php:360)
Closed, ResolvedPublic

Description

  • mediawiki/core (47e8bf1baf66) locally, running PHP 8.5
  • composer phpunit:entrypoint -- --filter CollationTest
1) CollationTest::testGetFirstLetter with data set #5 ('uca-en', 'Êveryone', 'E')
ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead

/[...]/mediawiki/core/includes/Collation/IcuCollation.php:360
/[...]/mediawiki/core/tests/phpunit/includes/Collation/CollationTest.php:83

2) CollationTest::testGetFirstLetter with data set #6 ('uca-vi', 'Êveryone', 'Ê')
ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead

/[...]/mediawiki/core/includes/Collation/IcuCollation.php:360
/[...]/mediawiki/core/tests/phpunit/includes/Collation/CollationTest.php:83

3) CollationTest::testGetFirstLetter with data set #8 ('uca-sv', 'Å', 'Å')
ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead

/[...]/mediawiki/core/includes/Collation/IcuCollation.php:360
/[...]/mediawiki/core/tests/phpunit/includes/Collation/CollationTest.php:83

4) CollationTest::testGetFirstLetter with data set #13 ('uca-fi', 'Ǥ', 'G')
ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead

/[...]/mediawiki/core/includes/Collation/IcuCollation.php:360
/[...]/mediawiki/core/tests/phpunit/includes/Collation/CollationTest.php:83

5) CollationTest::testGetFirstLetter with data set #14 ('uca-fi', 'Ŧ', 'T')
ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead

/[...]/mediawiki/core/includes/Collation/IcuCollation.php:360
/[...]/mediawiki/core/tests/phpunit/includes/Collation/CollationTest.php:83

6) CollationTest::testGetFirstLetter with data set #15 ('uca-fi', 'Ʒ', 'Z')
ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead

/[...]/mediawiki/core/includes/Collation/IcuCollation.php:360
/[...]/mediawiki/core/tests/phpunit/includes/Collation/CollationTest.php:83

7) CollationTest::testGetFirstLetter with data set #16 ('uca-fi', 'Ŋ', 'N')
ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead

/[...]/mediawiki/core/includes/Collation/IcuCollation.php:360
/[...]/mediawiki/core/tests/phpunit/includes/Collation/CollationTest.php:83

(note: not yet seen in WMF experimental CI due to the order in which it runs MediaWiki's PHPUnit tests, but it presumably would be seen there at some point)

Event Timeline

Change #1225624 had a related patch set uploaded (by Bartosz Dziewoński; author: SarthakSingh2904):

[mediawiki/core@master] Fix PHP 8.5 deprecation warnings in IcuCollation

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

Change #1225624 merged by jenkins-bot:

[mediawiki/core@master] Fix PHP 8.5 deprecation warnings in IcuCollation

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

matmarex assigned this task to SarthakSingh2904.
matmarex subscribed.

Thank you for the patch!

Change #1225696 had a related patch set uploaded (by Zabe; author: SarthakSingh2904):

[mediawiki/core@REL1_45] Fix PHP 8.5 deprecation warnings in IcuCollation

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

Change #1225697 had a related patch set uploaded (by Zabe; author: SarthakSingh2904):

[mediawiki/core@REL1_44] Fix PHP 8.5 deprecation warnings in IcuCollation

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

Change #1225698 had a related patch set uploaded (by Zabe; author: SarthakSingh2904):

[mediawiki/core@REL1_43] Fix PHP 8.5 deprecation warnings in IcuCollation

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

Change #1225698 merged by jenkins-bot:

[mediawiki/core@REL1_43] Fix PHP 8.5 deprecation warnings in IcuCollation

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

Change #1225696 merged by jenkins-bot:

[mediawiki/core@REL1_45] Fix PHP 8.5 deprecation warnings in IcuCollation

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

Change #1225697 merged by jenkins-bot:

[mediawiki/core@REL1_44] Fix PHP 8.5 deprecation warnings in IcuCollation

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