| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | 6 | public function __construct(Passphrase $passphrase, HashAlgorithm $hashAlgorithm = null) |
|
| 38 | { |
||
| 39 | 6 | $this->passphrase = $passphrase; |
|
|
|
|||
| 40 | |||
| 41 | 6 | $this->addParameterFilter(new GeneralParameterFilter); |
|
| 42 | |||
| 43 | 6 | $this->hashAlgorithm = $hashAlgorithm ?: new HashAlgorithm(HashAlgorithm::HASH_SHA1); |
|
| 44 | 6 | } |
|
| 45 | |||
| 68 |
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..