Remove @internal from LocatedSource.php#1373
Remove @internal from LocatedSource.php#1373rodrigopedra wants to merge 1 commit intoRoave:6.16.xfrom
Conversation
|
Just in case, the
|
|
If we want to make this public, perhaps an interface would be better 🤔 |
I'd originally marked it That said, I understand the OP concern; I noticed the same in fact when consuming this in Roave/BackwardCompatibilityChecker - not actually sure why Psalm hasn't flagged that there, possibly because the top level Given that |
While
Roave\BetterReflection\SourceLocator\Type\AbstractSourceLocatoris not marked as@internal, it expects a child class to implement thecreateLocatedSource()method.In turn, the
createLocatedSource()method has a return type ofRoave\BetterReflection\SourceLocator\Located\LocatedSource|null, andRoave\BetterReflection\SourceLocator\Located\LocatedSourcewhich is marked as@internal.This PR
@internalfromRoave\BetterReflection\SourceLocator\Located\LocatedSource's docblockThis is more like an annoyance, when writing custom source locators that extend from
Roave\BetterReflection\SourceLocator\Type\AbstractSourceLocator, than an issue, as static analysis flags one is using an internal class.Feel free to reject this PR, or, maybe, mark
Roave\BetterReflection\SourceLocator\Type\AbstractSourceLocatoras@internal, in case this change is not desirable.