Conditions | 4 |
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 Static_Const ) { |
||
33 | // check if it's using this missing property |
||
34 | if ( $invocation->class_name === $this->old_declaration->class_name |
||
35 | && $invocation->const_name === $this->old_declaration->const_name ) { |
||
36 | $warnings->add( new Warning( $this->type(), $invocation->path, $invocation->line, 'Class const ' . $this->old_declaration->display_name() . ' was moved from ' . $this->old_declaration->path . ' to ' . $this->new_declaration->path, $this->old_declaration ) ); |
||
37 | } |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 |