---
title: "lint/tags/no-invalid-open-tag"
pagination: false
---

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

<RuleId id="lint/tags/no-invalid-open-tag" />

In the [`code-quality`](/docs/rules/sets/code-quality) set. Safe fix. Intent: correctness.

## What it does

Detects misspelled PHP opening tags like `<php?` instead of `<?php`.

## Configuration

```toml title="pun.toml"
[lint.rules]
"tags/no-invalid-open-tag" = "error"
```

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

## Replaces

- [`invalid-open-tag`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#invalid-open-tag) (mago-linter)

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