note 49600 deleted from language.oop5.patterns by vrana
| From: | vrana@php.net | Date: | Wed, 06 Jul 2005 19:38:55 +0000 |
| Subject: | note 49600 deleted from language.oop5.patterns by vrana | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-91548@lists.php.net to get a copy of this message | ||
Note Submitter: Pablo
----
I believe there is a typo in the factory method pattern:
// The factory method
function &factory($type){
}
The & is not needed as objects in php5 are always passed as references.