Hi!
Of course we could, we'd "just" have to change a structure and zend_verify_arg_class_kind() and of course the language syntax to allow something like "function foo(A|B $bar) {}" but this still would mean to
Maybe just use a plain old if()? :) I understand that is super-uncool bit we really don't have to invent another mini-php there to specify argument types (what if I want A and B, but not C which extends B, but also null would be OK, and strings "A" and "B" too?)
-- Stanislav Malyshev, Zend Software Architect s...@zend.com http://www.zend.com/ (408)253-8829 MSN: s...@zend.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php