Skip to content

Commit 8b15a0f

Browse files
authored
Replacing old phputf8 with symfony mbstring polyfill (#55)
* Replacing old phputf8 with symfony mbstring polyfill * trigger notice for null value for strspn()
1 parent 9bac33c commit 8b15a0f

27 files changed

+242
-3303
lines changed

composer.json

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"license": "GPL-2.0-or-later",
88
"require": {
99
"php": "^8.1.0",
10-
"symfony/deprecation-contracts": "^2|^3"
10+
"symfony/deprecation-contracts": "^2|^3",
11+
"symfony/polyfill-mbstring": "^1.31.0"
1112
},
1213
"require-dev": {
1314
"doctrine/inflector": "^1.2",
@@ -28,24 +29,7 @@
2829
"autoload": {
2930
"psr-4": {
3031
"Joomla\\String\\": "src/"
31-
},
32-
"files": [
33-
"src/phputf8/utf8.php",
34-
"src/phputf8/ord.php",
35-
"src/phputf8/str_ireplace.php",
36-
"src/phputf8/str_pad.php",
37-
"src/phputf8/str_split.php",
38-
"src/phputf8/strcasecmp.php",
39-
"src/phputf8/strcspn.php",
40-
"src/phputf8/stristr.php",
41-
"src/phputf8/strrev.php",
42-
"src/phputf8/strspn.php",
43-
"src/phputf8/trim.php",
44-
"src/phputf8/ucfirst.php",
45-
"src/phputf8/ucwords.php",
46-
"src/phputf8/utils/ascii.php",
47-
"src/phputf8/utils/validation.php"
48-
]
32+
}
4933
},
5034
"autoload-dev": {
5135
"psr-4": {
@@ -56,7 +40,8 @@
5640
"extra": {
5741
"branch-alias": {
5842
"dev-2.0-dev": "2.0-dev",
59-
"dev-3.x-dev": "3.0-dev"
43+
"dev-3.x-dev": "3.x-dev",
44+
"dev-4.x-dev": "4.x-dev"
6045
}
6146
}
6247
}

0 commit comments

Comments
 (0)