textmate/php.tmbundle

Array-hinted parameters with default value of []

assertchris opened this issue · 5 comments

The following default value is displayed as a syntax error:

function foo(array $args = []) {
    // ...
}

Corrected in 5d9b5d0, thanks for the report.

🍻
Awesome work -- that bug was very annoying.

Excellent thanks. =D

👍

The old syntax still appears to be broken.

@franzliedke It works if you lowercase the array:

<?php 

public function getByID($threadID, array $with = array()) {}

?>