mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 01:58:09 +01:00
Update Stripe lib to 10.7.0
This commit is contained in:
@@ -7,15 +7,6 @@ namespace Stripe;
|
||||
*/
|
||||
abstract class SingletonApiResource extends ApiResource
|
||||
{
|
||||
protected static function _singletonRetrieve($options = null)
|
||||
{
|
||||
$opts = Util\RequestOptions::parse($options);
|
||||
$instance = new static(null, $opts);
|
||||
$instance->refresh();
|
||||
|
||||
return $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string the endpoint associated with this singleton class
|
||||
*/
|
||||
@@ -23,6 +14,8 @@ abstract class SingletonApiResource extends ApiResource
|
||||
{
|
||||
// Replace dots with slashes for namespaced resources, e.g. if the object's name is
|
||||
// "foo.bar", then its URL will be "/v1/foo/bar".
|
||||
|
||||
/** @phpstan-ignore-next-line */
|
||||
$base = \str_replace('.', '/', static::OBJECT_NAME);
|
||||
|
||||
return "/v1/{$base}";
|
||||
|
||||
Reference in New Issue
Block a user