Commit 08b2ba2
committed
fix: resolve PHP 8.5 test failures and PHPUnit compatibility
- Updated `TextHelper::toUtf8` to use an explicit encoding list for `mb_detect_encoding`, ensuring correct handling of non-UTF8 text (e.g., ISO-8859-1).
- Applied `#[AllowDynamicProperties]` to `TldParser` to suppress deprecation warnings when setting dynamic configuration properties.
- Converted `TldParsingTest::getTestData` to a static method to comply with PHPUnit 10+ requirements.
- Verified all 460 tests are passing on PHP 8.5.1 parent 40bb728 commit 08b2ba2
3 files changed
Lines changed: 3 additions & 2 deletions
File tree
- src/Iodev/Whois
- Helpers
- Modules/Tld
- tests/Iodev/Whois/Modules/Tld
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
0 commit comments