note 126784 added to function.gettype
| From: | Anonymous at main dot php dot net | Date: | Thu, 20 Jan 2022 18:03:46 +0000 |
| Subject: | note 126784 added to function.gettype | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-217524@lists.php.net to get a copy of this message | ||
It's unfortunatelly very PHP-"style" that gettype() returns "boolean" yet
if you want to typehint anything, then you must use "bool"
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.135 (proxied: 37.47.161.75)
----
Manual Page -- https://php.net/manual/en/function.gettype.php
Edit -- https://main.php.net/note/edit/126784
Del: integrated -- https://main.php.net/note/delete/126784/integrated
Del: useless -- https://main.php.net/note/delete/126784/useless
Del: bad code -- https://main.php.net/note/delete/126784/bad+code
Del: spam -- https://main.php.net/note/delete/126784/spam
Del: non-english -- https://main.php.net/note/delete/126784/non-english
Del: in docs -- https://main.php.net/note/delete/126784/in+docs
Del: other reasons-- https://main.php.net/note/delete/126784
Reject -- https://main.php.net/note/reject/126784
Search -- https://main.php.net/manage/user-notes.php