: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<?php namespace flow\social;
if ( ! defined( 'WPINC' ) ) die;
* @author Looks Awesome <email@looks-awesome.com>
* @link http://looks-awesome.com
* @copyright 2014-2018 Looks Awesome
class LASocialRequestException extends LASocialException {
* LASocialRequestException constructor.
* @internal param int $response
* @internal param string $message
public function __construct($url, $errors, $message = '') {
parent::__construct($message, array('url' => $url));
public function getRequestErrors(){
public function __toString() {
$text = parent::__toString();
if (!empty($this->errors)){
$text .= "\n Request errors:\n";
$text .= print_r($this->errors, true);