Skip to content

Libs folder not found issue due to missing slash #387

Description

@lihsaa591

Steps to reproduce the behavior

I am using WP rmccue/requests instead of razorpay library. I have added this in my composer.json file
"replace": { "rmccue/requests": "*" },
and composer update

Now, I am getting error that folder not found and after looking though Deprecated.php filer there is '/' missing before libs.

if (class_exists('WpOrg\Requests\Autoload') === false) { require_once __DIR__. 'libs/Requests-2.0.4/src/Autoload.php'; }

Expected behavior

Use WP default request instead of main library. And Php format should work normally.

Actual behavior

Now my PHP sniffer extension giving error that the folder not exists.

Code snippets

Php version

php v8.3

Library version

2.9.0

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions