Roave / BackwardCompatibilityCheck

:ab: Tool to compare two revisions of a class API to check for BC breaks
MIT License
570 stars 59 forks source link

Support `@psalm-internal` #738

Open weirdan opened 1 year ago

weirdan commented 1 year ago

BCC supports @internal docblock tag that can be used to limit access to the top-level namespace (at least, that's how Psalm interprets it).

Psalm also supports @psalm-internal tag that allows you to grant access in a more modular fashion (you can reference sub-namespaces, classes, and even individual methods and functions), but BCC ignores that tag.

Ocramius commented 1 year ago

Analysis of various symbols is context-less, so a @psalm-internal \Some\Namespace would be equivalent to @internal for this tool: is that sufficient?

weirdan commented 1 year ago

I think that would be sufficient, it's better than nothing, for sure.