Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #19062
| Path | csiph.com!aioe.org!y/zf3gUsVB1ibu6gO1+poA.user.46.165.242.91.POSTED!not-for-mail |
|---|---|
| From | Tommy <ba@ve.net> |
| Newsgroups | comp.lang.php |
| Subject | phpdoc: function return type |
| Date | Thu, 14 Jul 2022 18:23:06 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <tapfta$1cl9$1@gioia.aioe.org> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Info | gioia.aioe.org; logging-data="45737"; posting-host="y/zf3gUsVB1ibu6gO1+poA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 |
| Content-Language | it-IT |
| X-Notice | Filtered by postfilter v. 0.9.2 |
| Xref | csiph.com comp.lang.php:19062 |
Show key headers only | View raw
/**
* @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?
Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread
phpdoc: function return type Tommy <ba@ve.net> - 2022-07-14 18:23 +0200
Re: phpdoc: function return type "J.O. Aho" <user@example.net> - 2022-07-14 19:04 +0200
Re: phpdoc: function return type Tommy <ba@ve.net> - 2022-07-15 15:52 +0200
csiph-web