Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | public function testAddClaim() |
||
41 | { |
||
42 | $parameter = new Custom('foo', 'bar'); |
||
43 | |||
44 | $this->parameter->addParameter($parameter); |
||
45 | $expectedValue = [self::$value[0], 'foo']; |
||
46 | |||
47 | $this->assertSame($expectedValue, $this->parameter->getValue()); |
||
48 | |||
49 | $this->parameter->addParameter($parameter); |
||
50 | $this->assertSame($expectedValue, $this->parameter->getValue(), 'Add parameter duplicates claims'); |
||
51 | } |
||
52 | } |
||
53 |
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: