---
title: "analyse/types/redundant-array-values"
pagination: false
---

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

<RuleId id="analyse/types/redundant-array-values" />

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

## Configuration

```toml title="pun.toml"
[analyse.rules]
"types/redundant-array-values" = "on"
```

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

## Replaces

- [`ArrayValuesRule`](https://phpstan.org/error-identifiers/arrayValues.empty) (phpstan-classes)
- [`arrayValues.empty`](https://phpstan.org/error-identifiers/arrayValues.empty) (phpstan)
- [`arrayValues.list`](https://phpstan.org/error-identifiers/arrayValues.list) (phpstan)

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