Hannes Magnusson wrote:
typeHinted([1 => [1 => []]]); // array(1 => array(1 => array()));
IMHO the common case would benefit and your pathological example is
unreadable both ways. Personally I'd reformat it to
typeHinted([
1 => [
1 => []
]
]);
resp.
typeHinted(array(
1 => array(
1 => array(),
)
));
or something similar anyway to make them readable. Plus you could still
use array() if you really wanted to.
Regards,
- Chris
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php