Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 9 |
Lines | 21 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
44 | View Code Duplication | public static function testSetProvider() |
|
45 | { |
||
46 | return [ |
||
47 | [ |
||
48 | [ |
||
49 | 'alg' => 'HS256', |
||
50 | 'typ' => 'JWT', |
||
51 | ], |
||
52 | 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9' |
||
53 | ], |
||
54 | [ |
||
55 | [ |
||
56 | 'sub' => '1234567890', |
||
57 | 'name' => 'John Doe', |
||
58 | 'admin' => true, |
||
59 | ] |
||
60 | , |
||
61 | 'eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9' |
||
62 | ] |
||
63 | ]; |
||
64 | } |
||
65 | } |
||
66 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: