Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48821 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55334 invoked from network); 17 Jun 2010 19:14:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jun 2010 19:14:13 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 207.97.245.153 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 207.97.245.153 smtp153.iad.emailsrvr.com Linux 2.4/2.6 Received: from [207.97.245.153] ([207.97.245.153:52324] helo=smtp153.iad.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/36-36621-3047A1C4 for ; Thu, 17 Jun 2010 15:14:12 -0400 Received: from relay15.relay.iad.mlsrvr.com (localhost [127.0.0.1]) by relay15.relay.iad.mlsrvr.com (SMTP Server) with ESMTP id 8D0511B40FE; Thu, 17 Jun 2010 15:14:09 -0400 (EDT) Received: by relay15.relay.iad.mlsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 312AF1B4153; Thu, 17 Jun 2010 15:14:08 -0400 (EDT) Message-ID: <4C1A7400.6010800@sugarcrm.com> Date: Thu, 17 Jun 2010 12:14:08 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Christian Kaps CC: "internals@lists.php.net" References: <4C1A6B47.4060702@mohiva.com> In-Reply-To: <4C1A6B47.4060702@mohiva.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Type hinting From: smalyshev@sugarcrm.com (Stas Malyshev) 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