Array-hinted parameters with default value of []
assertchris opened this issue · 5 comments
assertchris commented
The following default value is displayed as a syntax error:
function foo(array $args = []) {
// ...
}infininight commented
Corrected in 5d9b5d0, thanks for the report.
graymalkin commented
🍻
Awesome work -- that bug was very annoying.
JackBlower commented
Excellent thanks. =D
👍
franzliedke commented
The old syntax still appears to be broken.
infininight commented
@franzliedke It works if you lowercase the array:
<?php
public function getByID($threadID, array $with = array()) {}
?>