Remove @internal from LocatedSource.php #1373
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While
Roave\BetterReflection\SourceLocator\Type\AbstractSourceLocator
is 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\LocatedSource
which is marked as@internal
.This PR
@internal
fromRoave\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\AbstractSourceLocator
as@internal
, in case this change is not desirable.