Open pizgariu opened 5 months ago
May I use to write my own attribute check if this not working? Can anyone reproduce? My DTO class:
<?php
namespace MiningCity\DirectMiningService\Application\Post\DTO\Request;
use Symfony\Component\Validator\Constraints as Assert;
final class UpdatePostRequest
{
#[Assert\NotBlank]
#[Assert\Type('string')]
#[Assert\Length(min: 10)]
public string $content;
public ?\DateTime $publishedAt = null;
}
When I use this extra later and additionaly remove it from Symfony composer collector shows issues on two layers used on Application.
I think I get it - You check for ClassLikeReference or FunctionReference, but I can't see any ClassPropertyReference... Am I right?
If we switch to the
Symfony
this will work, but also could include ALL from Symfony packages which is not good for onion architecture. Can You please explain me if this is a bug or maybe I don't know how to work with deptrac :)Thanks for any help!
PS. I've found
attribute
and I was sure that was the collector what I was looking for - its for Assert fot DTO's. But with this config it's still not working & duplicate same errors: