|
@@ -33,7 +33,7 @@ |
|
|
block discarded – undo |
|
33
|
33
|
private function supportsEntity(ClassMetadata $targetEntity): bool |
|
34
|
34
|
{ |
|
35
|
35
|
if (!empty($targetEntity->subClasses)) { |
|
36
|
|
- $highestSubclass = $targetEntity->subClasses[max(\count($targetEntity->subClasses)-1, 0)]; |
|
|
36
|
+ $highestSubclass = $targetEntity->subClasses[max(\count($targetEntity->subClasses) - 1, 0)]; |
|
37
|
37
|
return is_subclass_of($highestSubclass, PublishableInterface::class); |
|
38
|
38
|
} |
|
39
|
39
|
$reflection = $targetEntity->getReflectionClass(); |
Please login to merge, or discard this patch.