Re: [PHP7][Bug?] What is the difference between 'boolean' and 'bool'?
| From: | Daniel Korner | Date: | Thu, 17 Dec 2015 11:08:06 +0000 |
| Subject: | Re: [PHP7][Bug?] What is the difference between 'boolean' and 'bool'? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-325299@lists.php.net to get a copy of this message | ||
Thank you Robert and David for your help :)
I guess I'm going to avoid aliases as much as possible.
But still... I'm quite confused that the type is called "boolean" in the
documentation but "bool" needs to be used in code (as boolean is an alias to
bool for the type boolean *headache*).
Anyway, I think this sort of information (no alias support for type hinting)
should be in the documentation (at least as a side note). I'm going to open a
ticket for that :)
---
Korner, Daniel
Attachment: [application/pgp-signature] OpenPGP digital signature
Attachment: [application/pgp-signature] OpenPGP digital signature