Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wpforms-.../vendor_p.../stripe/stripe-p.../lib
File: SingletonApiResource.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace WPForms\Vendor\Stripe;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Class SingletonApiResource.
[5] Fix | Delete
*/
[6] Fix | Delete
abstract class SingletonApiResource extends ApiResource
[7] Fix | Delete
{
[8] Fix | Delete
/**
[9] Fix | Delete
* @return string the endpoint associated with this singleton class
[10] Fix | Delete
*/
[11] Fix | Delete
public static function classUrl()
[12] Fix | Delete
{
[13] Fix | Delete
// Replace dots with slashes for namespaced resources, e.g. if the object's name is
[14] Fix | Delete
// "foo.bar", then its URL will be "/v1/foo/bar".
[15] Fix | Delete
/** @phpstan-ignore-next-line */
[16] Fix | Delete
$base = \str_replace('.', '/', static::OBJECT_NAME);
[17] Fix | Delete
return "/v1/{$base}";
[18] Fix | Delete
}
[19] Fix | Delete
/**
[20] Fix | Delete
* @return string the endpoint associated with this singleton API resource
[21] Fix | Delete
*/
[22] Fix | Delete
public function instanceUrl()
[23] Fix | Delete
{
[24] Fix | Delete
return static::classUrl();
[25] Fix | Delete
}
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function