Skip to content

Conversation

@chikeh
Copy link

@chikeh chikeh commented Aug 1, 2025

Changes made by this pull request

This pull request updates the Router class to fix a deprecation warning in PHP 8.3:

Deprecated function: Calling get_class() without arguments is deprecated in Yabacon\Paystack\Helpers\Router->__construct()

Change summary:

Replaces get_class() with get_class($this) in the Closure::bind() call in Router.php.

Ensures compatibility with PHP 8 and later, where calling get_class() without an argument is deprecated.

This change is backward compatible and resolves the warning encountered during Paystack checkout integration on modern PHP versions.

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