---
title: "format/tags/full-opening"
pagination: false
---

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

<RuleId id="format/tags/full-opening" />

In the [`format-laravel`](/docs/rules/presets/format-laravel) and [`format-psr12`](/docs/rules/presets/format-psr12) presets. Safe fix.

## What it does

PHP code must use the long `<?php` tags or short-echo `<?=` tags and not other tag variations.

## Configuration

```toml title="pun.toml"
[format.rules]
"tags/full-opening" = true
```

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

## Replaces

- [`full_opening_tag`](https://cs.symfony.com/doc/rules/php_tag/full_opening_tag.html) (php-cs-fixer)
- [`no-short-opening-tag`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#no-short-opening-tag) (mago-linter)

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