Skip to content

fix(router): declare nullable callbacks and options - #3

Merged
localzet merged 3 commits into
mainfrom
fix/router-php84-nullable
Nov 21, 2026
Merged

localzet merged 3 commits into
mainfrom
fix/router-php84-nullable

Conversation

@localzet

@localzet localzet commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Changes

  • Declare nullable types for optional callbacks and options to remove PHP 8.4+ deprecations.
  • Keep Router::child() safe when its optional callback is omitted.
  • Make PHPUnit fail on deprecations and cover the regression.
  • Correct the EN/RU compatibility notes: stable Engine 9.0.0 is available, and Router 2.0.6 supports Engine ^8.1 || ^9.0.

Verification

@localzet
localzet merged commit 7123034 into main Nov 21, 2026
4 checks passed
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.

1 participant