diff --git a/src/Bundle/ChillPersonBundle/Entity/Person/PersonResource.php b/src/Bundle/ChillPersonBundle/Entity/Person/PersonResource.php index b6dc57ed8..4e1718a64 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person/PersonResource.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person/PersonResource.php @@ -261,13 +261,15 @@ class PersonResource implements TrackCreationInterface, TrackUpdateInterface /** * @Assert\Callback + * + * @param mixed $payload */ public function validate(ExecutionContextInterface $context, $payload) { - if ($this->person === null && $this->thirdParty === null && $this->freeText === null ) { + if (null === $this->person && null === $this->thirdParty && null === $this->freeText) { $context->buildViolation('You must associate at least one entity') - ->atPath('person') - ->addViolation(); + ->atPath('person') + ->addViolation(); } } }