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.../public_h.../wp-conte.../plugins/wordpres.../src/exceptio.../oauth
File: authentication-failed-exception.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Exceptions\OAuth;
[2] Fix | Delete
[3] Fix | Delete
use Exception;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Class Authentication_Failed_Exception
[7] Fix | Delete
*/
[8] Fix | Delete
class Authentication_Failed_Exception extends Exception {
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Authentication_Failed_Exception constructor.
[12] Fix | Delete
*
[13] Fix | Delete
* @param Exception $original_exception The original exception.
[14] Fix | Delete
*/
[15] Fix | Delete
public function __construct( Exception $original_exception ) {
[16] Fix | Delete
parent::__construct( 'Authentication failed', 401, $original_exception );
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Returns a formatted response object.
[21] Fix | Delete
*
[22] Fix | Delete
* @return object The response object.
[23] Fix | Delete
*/
[24] Fix | Delete
public function get_response() {
[25] Fix | Delete
return (object) [
[26] Fix | Delete
'tokens' => [],
[27] Fix | Delete
'error' => $this->getMessage() . ': ' . $this->getPrevious()->getMessage(),
[28] Fix | Delete
'status' => $this->getCode(),
[29] Fix | Delete
];
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function