@@ -345,7 +345,7 @@ public function loadJWSJSONSerialization(): void
345345 '{"payload":"eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFtcGxlLmNvbS9pc19yb290Ijp0cnVlfQ","signatures":[{"protected":"eyJhbGciOiJSUzI1NiJ9","header":{"kid":"2010-12-29"},"signature":"cC4hiUPoj9Eetdgtv3hF80EGrhuB__dzERat0XF9g2VtQgr9PJbu3XOiZj5RZmh7AAuHIm4Bh-0Qc_lF5YKt_O8W2Fp5jujGbds9uJdbF9CUAr7t1dnZcAcQjbKBYNX4BAynRFdiuB--f_nZLgrnbyTyWzO75vRK5h6xBArLIARNPvkSjtQBMHlb1L07Qe7K0GarZRmB_eSN9383LcOLn6_dO--xi12jzDwusC-eOkHWEsqtFZESc6BfI7noOPqvhJ1phCnvWh6IeYI2w9QOYEUipUTI8np6LbgGY9Fs98rqVt5AXLIhWkWywlVmtVrBp0igcN_IoypGlUPQGe77Rw"},{"protected":"eyJhbGciOiJFUzI1NiJ9","header":{"kid":"e9bc097a-ce51-4036-9562-d2ade882db0d"},"signature":"DtEhU3ljbEg8L38VWAfUAqOyKAM6-Xx-F4GawxaepmXFCgfTjDxw5djxLa8ISlSApmWQxfKTUJqPP3-Kg6NU1Q"}]} '
346346 );
347347
348- $ claims = json_decode ($ result ->getPayload (), true , 512 , JSON_THROW_ON_ERROR );
348+ $ claims = json_decode (( string ) $ result ->getPayload (), true , 512 , JSON_THROW_ON_ERROR );
349349 static ::assertSame ([
350350 'iss ' => 'joe ' ,
351351 'exp ' => 1_300_819_380 ,
@@ -440,7 +440,7 @@ public function loadIETFExample1(): void
440440 'iss ' => 'joe ' ,
441441 'exp ' => 1_300_819_380 ,
442442 'http://example.com/is_root ' => true ,
443- ], json_decode ($ result ->getPayload (), true , 512 , JSON_THROW_ON_ERROR ));
443+ ], json_decode (( string ) $ result ->getPayload (), true , 512 , JSON_THROW_ON_ERROR ));
444444 static ::assertSame (1 , $ result ->countSignatures ());
445445 static ::assertSame ('HS256 ' , $ result ->getSignature (0 )->getProtectedHeaderParameter ('alg ' ));
446446 }
@@ -460,7 +460,7 @@ public function loadIETFExample2(): void
460460 'iss ' => 'joe ' ,
461461 'exp ' => 1_300_819_380 ,
462462 'http://example.com/is_root ' => true ,
463- ], json_decode ($ result ->getPayload (), true , 512 , JSON_THROW_ON_ERROR ));
463+ ], json_decode (( string ) $ result ->getPayload (), true , 512 , JSON_THROW_ON_ERROR ));
464464 static ::assertSame (1 , $ result ->countSignatures ());
465465 static ::assertSame ('RS256 ' , $ result ->getSignature (0 )->getProtectedHeaderParameter ('alg ' ));
466466 }
@@ -480,7 +480,7 @@ public function loadIETFExample3(): void
480480 'iss ' => 'joe ' ,
481481 'exp ' => 1_300_819_380 ,
482482 'http://example.com/is_root ' => true ,
483- ], json_decode ($ result ->getPayload (), true , 512 , JSON_THROW_ON_ERROR ));
483+ ], json_decode (( string ) $ result ->getPayload (), true , 512 , JSON_THROW_ON_ERROR ));
484484 static ::assertSame (1 , $ result ->countSignatures ());
485485 static ::assertSame ('ES256 ' , $ result ->getSignature (0 )->getProtectedHeaderParameter ('alg ' ));
486486 }
0 commit comments