| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function find_invocation_warnings( $invocation, $warnings ) { |
||
| 32 | if ( $invocation instanceof New_ ) { |
||
| 33 | // check if it's instantiating this missing class |
||
| 34 | echo "Checking " . $invocation->class_name . " matches " . $this->declaration->class_name . "\n"; |
||
| 35 | if ( $invocation->class_name === $this->class_name ) { |
||
| 36 | $warnings->add( new Warning( $invocation->path, $invocation->line, "Class " . $this->declaration->class_name . " is missing") ); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | } |
||
| 40 | } |