diff --git a/rules/CodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector.php b/rules/CodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector.php index cd842119..9c1330ef 100644 --- a/rules/CodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector.php +++ b/rules/CodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector.php @@ -66,6 +66,11 @@ class SomeClass * @var Collection|Trainer[] */ private $trainings = []; + + public function setTrainings($trainings) + { + $this->trainings = $trainings; + } } CODE_SAMPLE , @@ -83,6 +88,14 @@ class SomeClass * @var Collection */ private $trainings = []; + + /** + * @param Collection $trainings + */ + public function setTrainings($trainings) + { + $this->trainings = $trainings; + } } CODE_SAMPLE ),