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
MyClass uses ExternalCompatibilityClass but it triggers an InternalMethod error.
In my example, both methods calls the internal implementation but only example() triggers the error.
I'm not sure of the expected behaviour but I feel like both methods shouldn't trigger an error.
My example is a minimal reproduction of what's happening with the DoctrineBundle.
The documentations says :
class YourEntityRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, YourEntity::class);
}
}
but ServiceEntityRepository extends ServiceEntityRepositoryProxy which is internal.
The text was updated successfully, but these errors were encountered:
Psalm output (using commit 08afc45):
ERROR: InternalMethod - 33:20 - The method B\InternalClass::example is internal to B but called from A\MyClass::myExample
Hello,
https://psalm.dev/r/fb3777b99c
MyClass
usesExternalCompatibilityClass
but it triggers anInternalMethod
error.In my example, both methods calls the internal implementation but only
example()
triggers the error.I'm not sure of the expected behaviour but I feel like both methods shouldn't trigger an error.
My example is a minimal reproduction of what's happening with the DoctrineBundle.
The documentations says :
but
ServiceEntityRepository
extendsServiceEntityRepositoryProxy
which is internal.The text was updated successfully, but these errors were encountered: