|
@@ -34,7 +34,7 @@ discard block |
|
|
block discarded – undo |
|
34
|
34
|
array_keys($this->accessibleProperties($toClass)) |
|
35
|
35
|
); |
|
36
|
36
|
|
|
37
|
|
- return Changes::fromList(...array_map(function (string $property) use ($fromProperties) : Change { |
|
|
37
|
+ return Changes::fromList(...array_map(function(string $property) use ($fromProperties) : Change { |
|
38
|
38
|
return Change::removed( |
|
39
|
39
|
sprintf('Property %s was removed', $this->formatProperty->__invoke($fromProperties[$property])), |
|
40
|
40
|
true |
|
@@ -45,12 +45,12 @@ discard block |
|
|
block discarded – undo |
|
45
|
45
|
/** @return ReflectionProperty[] */ |
|
46
|
46
|
private function accessibleProperties(ReflectionClass $class) : array |
|
47
|
47
|
{ |
|
48
|
|
- $classIsOpen = ! $class->isFinal(); |
|
|
48
|
+ $classIsOpen = !$class->isFinal(); |
|
49
|
49
|
|
|
50
|
|
- return array_filter($class->getProperties(), function (ReflectionProperty $property) use ($classIsOpen) : bool { |
|
|
50
|
+ return array_filter($class->getProperties(), function(ReflectionProperty $property) use ($classIsOpen) : bool { |
|
51
|
51
|
return ($property->isPublic() |
|
52
|
52
|
|| ($classIsOpen && $property->isProtected())) |
|
53
|
|
- && ! $this->isInternalDocComment($property->getDocComment()); |
|
|
53
|
+ && !$this->isInternalDocComment($property->getDocComment()); |
|
54
|
54
|
}); |
|
55
|
55
|
} |
|
56
|
56
|
|
Please login to merge, or discard this patch.