public function sendRequest($method, $uri, array $parameters = [], array $files = [], array $server = [], $content = null, $changeHistory = true)
    {
        set_error_handler(
            function ($level, $message, $errFile, $errLine) {
                if ($this->deprecationAdviser) {
                    $this->deprecationAdviser->addWarning($message, $errFile, $errLine);
                }
            },
            E_USER_DEPRECATED
        );

        $result = parent::request($method, $uri, $parameters, $files, $server, $content, $changeHistory);

        restore_error_handler();

        return $result;
    }
public function sendRequest($method, $uri, array $parameters = [], array $files = [], array $server = [], $content = null, $changeHistory = true)
    {
        set_error_handler(
            function ($level, $message, $errFile, $errLine) {
                if ($this->deprecationAdviser) {
                    $this->deprecationAdviser->addWarning($message, $errFile, $errLine);
                }
            },
            E_USER_DEPRECATED
        );

        $result = parent::request($method, $uri, $parameters, $files, $server, $content, $changeHistory);

        restore_error_handler();

        return $result;
    }
public function sendRequest ( $ method , $ uri , array $ parameters = [ ] , array $ files = [ ] , array $ server = [ ] , $ content = null , $ changeHistory = true ) { set_error_handler ( function ( $ level , $ message , $ errFile , $ errLine ) { if ( $ this -> deprecationAdviser ) { $ this -> deprecationAdviser -> addWarning ( $ message , $ errFile , $ errLine ) ; } } , E_USER_DEPRECATED ) ; $ result = parent :: request ( $ method , $ uri , $ parameters , $ files , $ server , $ content , $ changeHistory ) ; restore_error_handler ( ) ; return $ result ; }
This method works like `request` in the parent class, but has a error handler to catch all deprecation notices.
Can`t be named `request` to override the parent because in projects using symfony4 the signature for this method has been changed
using strict types on each argument.

@param string $method
@param string $uri
@param array  $parameters
@param array  $files
@param array  $server
@param null   $content
@param bool   $changeHistory

@return \Symfony\Component\DomCrawler\Crawler
This method works like request in the parent class but has a error handler to catch all deprecation notices . Can t be named request to override the parent because in projects using symfony4 the signature for this method has been changed using strict types on each argument .