PhpStorm 2020.1 Help

Code Inspection: Usage of internal entity

Reports the usages of the entities that are marked as @internal.

In most cases, such usages should be removed or replaced with other constructs.

Internal entity usage

The folders configuration that you define for your project regulates whether an entity is treated as internal or not by PhpStorm:

  • In a project without any Sources Sources root folders configured, no @internal classes' usages are marked.

  • If an @internal class is located inside a configured Sources Sources root folder, the usages within the same sources folder are not marked. Usages outside this sources folder are marked.

  • If an @internal class is located inside a library, all its usages outside libraries are marked.

  • Inside the Test Sources Test root folder folder, no @internal classes' usages are marked.

See Configuring folders within a content root for details.

Last modified: 5 June 2020