1.2.437. Exit Without Argument¶
This rule reports usage of die and exit without arguments, nor parenthesis. These commands are not functions, and are allowed to be used without parenthesis: by default, they use the 0 status.
<?php
exit;
die;
?>
1.2.437.1. Connex PHP features¶
1.2.437.1.1. Specs¶
Short name |
Php/ExitNoArg |
Rulesets |
|
Exakat since |
2.6.6 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Available in |