| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function compare(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes |
||
| 19 | { |
||
| 20 | if ($fromMethod->isAbstract() || ! $toMethod->isAbstract()) { |
||
| 21 | return Changes::new(); |
||
| 22 | } |
||
| 23 | |||
| 24 | return Changes::fromArray([Change::changed( |
||
| 25 | sprintf( |
||
| 26 | 'Method %s() of class %s changed from concrete to abstract', |
||
| 27 | $fromMethod->getName(), |
||
| 28 | $fromMethod->getDeclaringClass()->getName() |
||
| 29 | ), |
||
| 30 | true |
||
| 31 | ), |
||
| 35 |