Hello,

There is an error when i execute rector :

    ---------- begin diff ----------
--- Original
+++ New
@@ -4,6 +4,7 @@

 namespace Drupal\cmis;

+use function GuzzleHttp\Psr7\str;
 use Dkd\PhpCmis\Enum\BindingType;
 use Dkd\PhpCmis\SessionFactory;
 use Dkd\PhpCmis\SessionParameter;
@@ -330,11 +331,11 @@
       }
       catch (RequestException $e) {
         // @todo It would be better to fire an event.
-        $guzzle_request = Psr7\str($e->getRequest());
+        $guzzle_request = str($e->getRequest());
         \Drupal::logger('cmis')->notice($guzzle_request);

         if ($e->getCode() === 401) {
-          $guzzle_response = Psr7\str($e->getResponse());
+          $guzzle_response = str($e->getResponse());
           \Drupal::logger('cmis')->notice($guzzle_response);

           if (\Drupal::currentUser()->isAuthenticated()) {
    ----------- end diff -----------

Issue fork cmis-3196840

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bastienkopka created an issue. See original summary.

bakop’s picture

Assigned: bakop » Unassigned
Status: Active » Needs review

Issue should be solved. Tell me if the fix is correct ;)

Can you check please ?

Thanks.

grimreaper’s picture

Assigned: Unassigned » grimreaper

  • bastienkopka committed 4dcd9b1 on 8.x-2.x
    Issue #3196840: Fix rector error
    
  • Grimreaper authored e1121d1 on 8.x-2.x
    Issue #3196840 by bastienkopka, Grimreaper: Use Guzzle Message class.
    
grimreaper’s picture

Version: 8.x-2.x-dev » 3.0.x-dev
Assigned: grimreaper » Unassigned
Status: Needs review » Patch (to be ported)

Thanks.

str is deprecated so I have updated the commit.

Fixed for 8.x-2.x, patch to be ported for 3.0.x.

  • bastienkopka authored 4874587 on 3.0.x
    Issue #3196840: Fix rector error
    
  • Grimreaper authored 90e0986 on 3.0.x
    Issue #3196840 by bastienkopka, Grimreaper: Use Guzzle Message class.
    
grimreaper’s picture

Status: Patch (to be ported) » Fixed

Cherry-picked on 3.0.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.