BackwardCompatibilityCheck icon indicating copy to clipboard operation
BackwardCompatibilityCheck copied to clipboard

Support `@psalm-internal`

Open weirdan opened this issue 2 years ago • 2 comments

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.

weirdan avatar Feb 23 '23 08:02 weirdan

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

Ocramius avatar Feb 23 '23 08:02 Ocramius

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

weirdan avatar Feb 23 '23 16:02 weirdan