note 119337 modified in reflectionparameter.getdefaultvalue by cmb
| From: | cmb@php.net | Date: | Tue, 24 May 2016 13:45:38 +0000 |
| Subject: | note 119337 modified in reflectionparameter.getdefaultvalue by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-205571@lists.php.net to get a copy of this message | ||
[Editor's note: fixed on user's request]
Getting
Uncaught ReflectionException: Internal error: Failed to retrieve the default
value?
You have to wrap this inside ->isDefaultValueAvailable().
--was--
Getting Uncaught ReflectionException: Internal error: Failed to retrieve the default
value?
You have to wrap this inside ->isOptional().
http://php.net/manual/en/reflectionparameter.getdefaultvalue.php