1.2.941. PHP Native Attributes¶
<?php
#[Attribute]
class x {
function foo(#[SensitiveParameter] $a) {
// doSomething()
}
}
?>
See also PHP native attributes.
1.2.941.1. Specs¶
Short name |
Attributes/PhpNativeAttributes |
Rulesets |
|
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 |