You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm encountering a false positive warning in PHPStorm when using a standard Symfony Doctrine relation in an entity constructor.
The plugin displays:
Symfony: You probably don't want to inject a "AdvertiserReportMappingProcess" here
This happens even though the injection is fully valid and recommended in Symfony's documentation.
Here's a simplified snippet:
The target class is another Doctrine entity. It is a ManyToOne relation, but the same is true for any other relationship.
No warning should be shown in this context.
Symfony Support 2024.1.276
PHPStorm 2024.3.5
Symfony 7.2.4
PHP 8.3
The text was updated successfully, but these errors were encountered:
Hi,
I'm encountering a false positive warning in PHPStorm when using a standard Symfony Doctrine relation in an entity constructor.
The plugin displays:
This happens even though the injection is fully valid and recommended in Symfony's documentation.
Here's a simplified snippet:
The target class is another Doctrine entity. It is a ManyToOne relation, but the same is true for any other relationship.
No warning should be shown in this context.
Symfony Support 2024.1.276
PHPStorm 2024.3.5
Symfony 7.2.4
PHP 8.3
The text was updated successfully, but these errors were encountered: