Skip to content

Not Compatible with PHP 8.3 #375

@magentowebkul

Description

@magentowebkul

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions