1 | <?php |
||
7 | class CriticalTest extends \PHPUnit_Framework_TestCase |
||
8 | { |
||
9 | private static $name = 'crit'; |
||
10 | private static $value = ['foobar']; |
||
11 | |||
12 | /** |
||
13 | * @var Critical |
||
14 | */ |
||
15 | private $parameter; |
||
16 | |||
17 | public function setUp() |
||
21 | |||
22 | public function testGetName() |
||
26 | |||
27 | public function testGetValue() |
||
31 | |||
32 | public function testSetValue() |
||
39 | |||
40 | public function testAddClaim() |
||
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: