Conditions | 5 |
Paths | 4 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
61 | public function addAnnotation( |
||
62 | DIProperty $property, SemanticData $semanticData |
||
63 | ) { |
||
64 | if ( $this->approvedStatus === null && class_exists( 'ApprovedRevs' ) ) { |
||
65 | $logReader = new LogReader( |
||
66 | $semanticData->getSubject()->getTitle(), 'approval' |
||
67 | ); |
||
68 | $this->approvedStatus = $logReader->getStatus(); |
||
69 | } |
||
70 | |||
71 | if ( is_string( $this->approvedStatus ) && $this->approvedStatus !== "" ) { |
||
72 | $semanticData->addPropertyObjectValue( |
||
73 | $property, new DIString( $this->approvedStatus ) |
||
74 | ); |
||
75 | } else { |
||
76 | $semanticData->removeProperty( $property ); |
||
77 | } |
||
78 | } |
||
79 | } |
||
80 |
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..