---
title: "lint/phpdoc/no-package"
pagination: false
---

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

<RuleId id="lint/phpdoc/no-package" />

In the [`coding-style`](/docs/rules/sets/coding-style) set. Safe fix.

## What it does

`@package` and `@subpackage` annotations must be removed from PHPDoc.

## Configuration

```toml title="pun.toml"
[lint.rules]
"phpdoc/no-package" = "error"
```

To skip it in some files, add an [override](/docs/configuration/pun-toml#lint) or a [`@pun-ignore-file`](/docs/configuration/ignore-comments) comment.

## Replaces

- [`phpdoc_no_package`](https://cs.symfony.com/doc/rules/phpdoc/phpdoc_no_package.html) (php-cs-fixer)

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