Re: __constructor parameter limitations.
| From: | Stas Malyshev | Date: | Mon, 19 Sep 2011 00:27:50 +0000 |
| Subject: | Re: __constructor parameter limitations. | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55508@lists.php.net to get a copy of this message | ||
Hi!
On 9/18/11 5:24 PM, Pierre Joye wrote:
class foo{ function __construct(){} } class bar extends foo{ function__construct($a, $b){} }Come on. This is not my example. My example was: class foo{ function __construct($a, $b){} } class bar extends foo{ function__construct(){} } I would expect people at least read what I write before replying - is it too much? I wrote "foo() is compatible with foo($a, $b)" not the other way around and in case it wasn't clear I gave specific example. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227