1.2.539. Identity¶
This method, function or closure <https://www.php.net/`closure>`_ returns one of its argument, without modification. This is the identity function, which might not be called at all, as it does nothing but return the same incoming argument. It might also be ready for future use.
<?php
function foo($a) {
return $a;
}
?>
1.2.539.1. Specs¶
Short name |
Functions/Identity |
Rulesets |
|
Exakat since |
2.4.2 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
High |
Features |
identity |
Available in |