| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | 6 | public function compose(array $parameters) |
|
| 47 | { |
||
| 48 | 6 | foreach ($this->parameterFilters as $parameterFilter) { |
|
| 49 | 6 | $parameters = $parameterFilter->filter($parameters); |
|
| 50 | } |
||
| 51 | |||
| 52 | 6 | ksort($parameters); |
|
| 53 | |||
| 54 | // compose SHA string |
||
| 55 | 6 | $shaString = ''; |
|
| 56 | 6 | foreach ($parameters as $key => $value) { |
|
| 57 | 6 | $shaString .= $key . '=' . $value . $this->passphrase; |
|
| 58 | } |
||
| 59 | |||
| 60 | 6 | return strtoupper(hash($this->hashAlgorithm, $shaString)); |
|
| 61 | } |
||
| 62 | |||
| 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..