class Example { public function doSomething(Object[] $objects)
And how this would be verified - each time by passing whole array and checking each element is an object? I don't think it's a good idea. Also, PHP doesn't have [] as array definition (at least not until Andi's idea is accepted), only as array resolution, so this syntax is also illogical, moreover, it gives you and idea that you could define types using [], which you can not.
-- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php