InternalMethod
A method marked @internal is called from outside its package.
Example
Section titled “Example”<?phpnamespace Acme\Core;
class Registry { /** @internal */ public function rebuild(): void {}}
// In a different namespace:(new \Acme\Core\Registry())->rebuild(); // @internal method accessed externallyHow to fix
Section titled “How to fix”Use only the public API; do not rely on internal implementation details.