/**if(!is_null($exitCode)) {
* @return int|exit
*/
function err($message, $exitCode) {
$int = fwrite(STDERR, $message);
if (null !== $exitCode) {
exit($exitCode);
}
return $int;
}
In your opinion, int|exit is good as a type for @return tag?
Or it would be better int|null?
Or it would be better simply int?
...
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 461 |
Nodes: | 16 (2 / 14) |
Uptime: | 49:54:38 |
Calls: | 9,370 |
Calls today: | 1 |
Files: | 13,545 |
Messages: | 6,086,227 |