| 1 | <?php |
||
| 10 | class KeyDerivationTest extends AbstractTestCase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @return array |
||
| 14 | */ |
||
| 15 | public function getKeyDerivationVectors() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param BufferInterface $password |
||
| 29 | * @param BufferInterface $salt |
||
| 30 | * @param BufferInterface $expectedOutput |
||
| 31 | * @param int $iterations |
||
| 32 | * @dataProvider getKeyDerivationVectors |
||
| 33 | */ |
||
| 34 | public function testKeyDerivation(BufferInterface $password, BufferInterface $salt, $iterations, BufferInterface $expectedOutput) |
||
| 39 | } |
||
| 40 |
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: