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/clone/wp-conte.../plugins/wordpres.../src/exceptio.../oauth/tokens
File: failed-storage-exception.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Exceptions\OAuth\Tokens;
[2] Fix | Delete
[3] Fix | Delete
use Exception;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Class Failed_Storage_Exception
[7] Fix | Delete
*/
[8] Fix | Delete
class Failed_Storage_Exception extends Exception {
[9] Fix | Delete
[10] Fix | Delete
public const DEFAULT_MESSAGE = 'Token storing failed. Please try again.';
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* Failed_Storage_Exception constructor.
[14] Fix | Delete
*
[15] Fix | Delete
* @param string $reason The reason why token storage failed. Optional.
[16] Fix | Delete
*/
[17] Fix | Delete
public function __construct( $reason = '' ) {
[18] Fix | Delete
$message = ( $reason ) ? \sprintf( 'Token storing failed. Reason: %s. Please try again', $reason ) : self::DEFAULT_MESSAGE;
[19] Fix | Delete
[20] Fix | Delete
parent::__construct( $message, 500 );
[21] Fix | Delete
}
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function