Re: Type hinting
| From: | Stas Malyshev | Date: | Thu, 17 Jun 2010 19:14:08 +0000 |
| Subject: | Re: Type hinting | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48821@lists.php.net to get a copy of this message | ||
Hi!
I know the discussion is about scalar type hints. But what is with a object type hint as base for all objects?When it makes sense to accept any object, regardless of the class, but not other types? I wonder if it's really a common use-case. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227