| Conditions | 3 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function __invoke(ReflectionProperty $fromProperty, ReflectionProperty $toProperty) : Changes |
||
| 28 | { |
||
| 29 | if ($this->isInternalDocComment($toProperty->getDocComment()) |
||
| 30 | && ! $this->isInternalDocComment($fromProperty->getDocComment()) |
||
| 31 | ) { |
||
| 32 | return Changes::fromList(Change::changed( |
||
| 33 | sprintf( |
||
| 34 | 'Property %s was marked "@internal"', |
||
| 35 | $this->formatProperty->__invoke($fromProperty), |
||
| 36 | ), |
||
| 37 | true |
||
| 38 | )); |
||
| 39 | } |
||
| 40 | |||
| 41 | return Changes::empty(); |
||
| 42 | } |
||
| 49 |