1 | <?php |
||
21 | class LegacyShaComposer implements ShaComposer |
||
22 | { |
||
23 | /** |
||
24 | * @var string Passphrase |
||
25 | */ |
||
26 | private $passphrase; |
||
27 | |||
28 | /** |
||
29 | * @var HashAlgorithm |
||
30 | */ |
||
31 | private $hashAlgorithm; |
||
32 | |||
33 | /** |
||
34 | * @param Passphrase $passphrase |
||
35 | * @param HashAlgorithm $hashAlgorithm |
||
36 | */ |
||
37 | public function __construct(Passphrase $passphrase, HashAlgorithm $hashAlgorithm = null) |
||
42 | |||
43 | /** |
||
44 | * @param array $parameters |
||
45 | * @return string |
||
46 | */ |
||
47 | public function compose(array $parameters) |
||
65 | } |
||
66 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..