Skip to content

chore: add PHP 8.5 support and modernize nullable type hints#232

Open
XternalSoft wants to merge 4 commits intoio-developer:masterfrom
XternalSoft:feature/php8.5-compatibility
Open

chore: add PHP 8.5 support and modernize nullable type hints#232
XternalSoft wants to merge 4 commits intoio-developer:masterfrom
XternalSoft:feature/php8.5-compatibility

Conversation

@XternalSoft
Copy link
Copy Markdown

  • Updated GitHub Actions workflow to include PHP 8.3, 8.4, and 8.5 in the test matrix.
  • Migrated CI to use shivammathur/setup-php on Ubuntu 24.04 for better environment management.
  • Relaxed PHPUnit version constraints in composer.json to support versions 9.0 through 11.0.
  • Refactored various classes to use explicit nullable type hints (?Type) for parameters with null default values.
  • Ensured strict PHP 8.x compatibility by resolving potential deprecation warnings related to implicit nullability.

- Updated GitHub Actions workflow to include PHP 8.3, 8.4, and 8.5 in the test matrix.
- Migrated CI to use `shivammathur/setup-php` on Ubuntu 24.04 for better environment management.
- Relaxed PHPUnit version constraints in `composer.json` to support versions 9.0 through 11.0.
- Refactored various classes to use explicit nullable type hints (`?Type`) for parameters with null default values.
- Ensured strict PHP 8.x compatibility by resolving potential deprecation warnings related to implicit nullability.
- 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.
- Updated `actions/checkout` from v2 to v4 to resolve Node.js 20 deprecation warnings.
- Ensures the CI workflow remains functional on newer GitHub Actions runners.
- Upgraded `actions/checkout` from v4 to v6 to support Node.js 24 natively.
- Added `FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true` at the workflow level to resolve deprecation warnings for all other actions.
- This ensures the CI environment is future-proof and avoids warnings related to Node.js 20 removal.
@Huluti
Copy link
Copy Markdown

Huluti commented Apr 2, 2026

@XternalSoft Hi! I think the lib is not maintained anymore, would you consider pushing you repo in packagist? It would be very useful!

@XternalSoft
Copy link
Copy Markdown
Author

@XternalSoft Hi! I think the lib is not maintained anymore, would you consider pushing you repo in packagist? It would be very useful!

I will see... I will let you know

@XternalSoft
Copy link
Copy Markdown
Author

@Huluti https://github.com/XternalSoft/php-whois

@Huluti
Copy link
Copy Markdown

Huluti commented Apr 4, 2026

Thanks a lot for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants