1.2.930. PHP 8.2 New Types¶
This rule reports usage of the new PHP 8.2 types. This is the true type.
This type is not available before version 8.2.
<?php
function foo() : true {
return true;
}
?>
1.2.930.1. Specs¶
Short name |
Php/Php82NewTypes |
Rulesets |
All, Changed Behavior, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, CompatibilityPHP73, CompatibilityPHP74, CompatibilityPHP80, CompatibilityPHP81 |
Exakat since |
2.6.6 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Available in |