1.2.942. PHP Native Attributes

This is the list of the PHP native attribute in use in the code. PHP native attribute depends on the PHP version, as new attributes are added regularly.

<?php

#[Attribute]
class x {
     function foo(#[SensitiveParameter] $a) {
             // doSomething()
     }
}

?>

See also PHP native attributes.

1.2.942.1. Specs

Short name

Attributes/PhpNativeAttributes

Rulesets

All, Attributes, Changed Behavior

Exakat since

2.6.4

PHP Version

With PHP 8.0 and more recent

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Features

attribute

Available in

Entreprise Edition, Exakat Cloud