You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code has hardcoded "vendor" dir name, but composer has the ability to override it with vendor-dir directive, and when it happens, lib will stop working rendering file not found message. Also, what if I do not use composer?
File: cybersource/rest-client-php/lib/ApiClient.php
Function: getClientId()
This code has hardcoded "vendor" dir name, but composer has the ability to override it with vendor-dir directive, and when it happens, lib will stop working rendering file not found message. Also, what if I do not use composer?
$packages = json_decode(file_get_contents(DIR . "/../../../../vendor/composer/installed.json"), true);
proper code (does not go outside of the "vendor" folder):
$packages = json_decode(file_get_contents(DIR . "/../../../composer/installed.json"), true);
The text was updated successfully, but these errors were encountered: