Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27789 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78074 invoked by uid 1010); 5 Feb 2007 05:57:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78059 invoked from network); 5 Feb 2007 05:57:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2007 05:57:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=news@sea.gmane.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.2 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.5 (sometimes 2.4) (4) Received: from [80.91.229.2] ([80.91.229.2:49223] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/89-18726-647C6C54 for ; Mon, 05 Feb 2007 00:57:27 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HDwqr-0006Wc-JL for internals@lists.php.net; Mon, 05 Feb 2007 06:57:17 +0100 Received: from p50887227.dip.t-dialin.net ([80.136.114.39]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Feb 2007 06:57:17 +0100 Received: from sb by p50887227.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Feb 2007 06:57:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Mon, 05 Feb 2007 06:57:14 +0100 Lines: 31 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: p50887227.dip.t-dialin.net User-Agent: Thunderbird 2.0b2 (Windows/20070116) Sender: news Subject: Object[] type hint From: sb@sebastian-bergmann.de (Sebastian Bergmann) Hi, any chance for the following type hint syntax class Example { public function doSomething(Object[] $objects) { } } instead of having to write class Example { public function doSomething(Array $objects) { foreach ($objects as $object) { if (!$object instanceof Object) { throw new InvalidArgumentException; } } } } Thanks, Sebastian -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69