Inspectopedia Help

Non-applicable attribute target declaration

Reports the attributes that do not have the appropriate Attribute::TARGET_* flag in their arguments declaration.

See Attributes (php.net) for details.

Inspection options

Here you can find the description of settings available for the Non-applicable attribute target declaration inspection, and the reference of their default values.

Allow only 'TARGET_PARAMETER|TARGET_PROPERTY' attributes with promoted properties

Not selected

Inspection Details

By default bundled with:

PhpStorm 2024.1, Qodana for PHP 2024.1,

Can be installed with plugin:

PHP, 241.SNAPSHOT

Last modified: 12 March 2024