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
But because \Doctrine\Persistence\ManagerRegistry is not a service but there is an alias pointing to it, it finds that doctrine is aliased to it, retrieves doctrine definition and mutates its public flag to whatever is set on alias. This is because of
In my case, plugin incorrectly claims
doctrine
service is private. After inspection, what I found is that plugin in my case analyzes these calls firstBut because
\Doctrine\Persistence\ManagerRegistry
is not a service but there is an alias pointing to it, it finds thatdoctrine
is aliased to it, retrievesdoctrine
definition and mutates itspublic
flag to whatever is set on alias. This is because ofpsalm-plugin-symfony/src/Symfony/ContainerMeta.php
Lines 154 to 167 in 2aa5964
In another words, in example such as
plugin will flip
public
ofdoctrine
into false wheneverDoctrine\Persistence\ManagerRegistry
is fetchedThe text was updated successfully, but these errors were encountered: