---
title: "analyse/classes/internal-static-property-access"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

<RuleId id="analyse/classes/internal-static-property-access" />

In the [`analyse-basic`](/docs/rules/presets/analyse-basic) preset and every stricter one. Report only.

## Configuration

```toml title="pun.toml"
[analyse.rules]
"classes/internal-static-property-access" = "on"
```

To skip it in some files or lines, add an [ignore comment](/docs/configuration/ignore-comments).

## Replaces

- [`RestrictedStaticPropertyUsageRule`](https://phpstan.org/error-identifiers/class.notFound) (phpstan-classes)
- [`staticProperty.deprecatedClass`](https://phpstan.org/error-identifiers/staticProperty.deprecatedClass) (phpstan)
- [`staticProperty.deprecatedEnum`](https://phpstan.org/error-identifiers/staticProperty.deprecatedEnum) (phpstan)
- [`staticProperty.deprecatedInterface`](https://phpstan.org/error-identifiers/staticProperty.deprecatedInterface) (phpstan)
- [`staticProperty.deprecatedTrait`](https://phpstan.org/error-identifiers/staticProperty.deprecatedTrait) (phpstan)
- [`staticProperty.internal`](https://phpstan.org/error-identifiers/staticProperty.internal) (phpstan)
- [`staticProperty.internalClass`](https://phpstan.org/error-identifiers/staticProperty.internalClass) (phpstan)
- [`staticProperty.internalEnum`](https://phpstan.org/error-identifiers/staticProperty.internalEnum) (phpstan)
- [`staticProperty.internalInterface`](https://phpstan.org/error-identifiers/staticProperty.internalInterface) (phpstan)
- [`staticProperty.internalTrait`](https://phpstan.org/error-identifiers/staticProperty.internalTrait) (phpstan)
- [`staticProperty.protected`](https://phpstan.org/error-identifiers/staticProperty.protected) (phpstan)

[More analyse/classes rules](/docs/rules/analyse/classes) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
