Hi! > Type hints continue to work as is: > > class Foo { > public function __construct(public stdClass $foo, protected array $bar = > null) {} > }
This is both very confusing syntax (since this would be only place in a language where public and type name can be mixed in the same construct) and it would imply that is somehow guaranteed that $foo is of type stdClass, which is actually not guaranteed at all. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php