| Conditions | 3 |
| Paths | 3 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function options ( array $options ) : void |
||
| 17 | { |
||
| 18 | foreach ( $options as $optionName => $optionValue ) { |
||
| 19 | $camelCaseOptionName = $this->textToCamelCase( $optionName ); |
||
| 20 | |||
| 21 | if ( in_array( $camelCaseOptionName, $this->availableOptions ) ) { |
||
| 22 | $this->$camelCaseOptionName = $optionValue; |
||
| 23 | } |
||
| 60 |
For hinted functions/methods where all return statements with the correct type are only reachable via conditions, ?null? gets implicitly returned which may be incompatible with the hinted type. Let?s take a look at an example: