note 106470 deleted from reflectionparameter.isdefaultvalueavailable by danbrown

From: Date: Tue, 15 Nov 2011 16:32:23 +0000
Subject: note 106470 deleted from reflectionparameter.isdefaultvalueavailable by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-184483@lists.php.net to get a copy of this message
Note Submitter: steffendietz ---- A quick note to the remark of "php at marcyes dot com": I think the Reflection class does a good job here NOT reporting the declared default value as available. In having the $che parameter without default value, the $bar parameter becomes automatically required, since you no longer may call the foo function without supplying both parameters. As a rule of thumb: optional parameters (the ones with default values) should always be declared last.

« previous php.notes (#184483) next »