10 lines
402 B
Markdown
10 lines
402 B
Markdown
---
|
|
globs: "**/*.php"
|
|
description: Ensure all new code uses modern PHP attribute syntax rather than
|
|
legacy annotation syntax for better type safety and code clarity. This applies
|
|
to routing, validation, security, and other Symfony components that support
|
|
attributes.
|
|
alwaysApply: true
|
|
---
|
|
|
|
Always use PHP attributes instead of annotations for routing and other Symfony features in PHP 8+ projects |