note 99308 added to reflectionparameter.allowsnull
| From: | jeroen at asystance dot nl | Date: | Tue, 10 Aug 2010 09:56:49 +0000 |
| Subject: | note 99308 added to reflectionparameter.allowsnull | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171508@lists.php.net to get a copy of this message | ||
It seems this always returns true for user-defined functions. Consider
function f1 ( $var1 = null, $var2, $var3 = false ) {}
ReflectionMethod reports these all as nullable (and only the 3rd as optional - weird)
----
Server IP: 69.147.83.197
Probable Submitter: 83.87.145.244
----
Manual Page -- http://www.php.net/manual/en/reflectionparameter.allowsnull.php
Edit -- https://master.php.net/note/edit/99308
Del: integrated -- https://master.php.net/note/delete/99308/integrated
Del: useless -- https://master.php.net/note/delete/99308/useless
Del: bad code -- https://master.php.net/note/delete/99308/bad+code
Del: spam -- https://master.php.net/note/delete/99308/spam
Del: non-english -- https://master.php.net/note/delete/99308/non-english
Del: in docs -- https://master.php.net/note/delete/99308/in+docs
Del: other reasons-- https://master.php.net/note/delete/99308
Reject -- https://master.php.net/note/reject/99308
Search -- https://master.php.net/manage/user-notes.php