Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Compatible with PHP 8.3 #375

Open
magentowebkul opened this issue May 15, 2024 · 0 comments
Open

Not Compatible with PHP 8.3 #375

magentowebkul opened this issue May 15, 2024 · 0 comments

Comments

@magentowebkul
Copy link

magentowebkul commented May 15, 2024

Steps to reproduce the behavior

Create a Request using method Razorpay\Api\Request::request("GET", "preferences")

Expected behavior

It should return true/false for the code written here ->
(https://github.com/razorpay/razorpay-php/blob/v2.8.4/src/Request.php#L224)

Actual behavior

Getting error as:
Deprecated Functionality: Calling get_class() without arguments is deprecated

Code snippets

return defined(get_class() . '::' . $code);

Php version

8.3

Library version

2.*

Additional Information

Replace get_class() with __CLASS__ here https://github.com/razorpay/razorpay-php/blob/master/src/Errors/ErrorCode.php#L15

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

No branches or pull requests

1 participant