| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | 2 | public function addAnnotation( DIProperty $property, SemanticData $semanticData ) { |
|
| 52 | |||
| 53 | 2 | $time = microtime( true ); |
|
| 54 | |||
| 55 | 2 | $localDefs = $this->appFactory->getOption( 'sespLocalPropertyDefinitions', array() ); |
|
|
|
|||
| 56 | |||
| 57 | 2 | foreach ( $localDefs as $key => $definition ) { |
|
| 58 | 2 | $this->callOnLocalDef( $definition, $property, $semanticData ); |
|
| 59 | 2 | } |
|
| 60 | |||
| 61 | 2 | $this->appFactory->getLogger()->info( |
|
| 62 | 2 | __METHOD__ . ' (procTime in sec: '. ( microtime( true ) - $time ) . ')' |
|
| 63 | 2 | ); |
|
| 64 | 2 | } |
|
| 65 | |||
| 84 |
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: