/*
* This file is part of Psy Shell.
*
- * (c) 2012-2017 Justin Hileman
+ * (c) 2012-2018 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
class FunctionDefaultParametersMatcher extends AbstractDefaultParametersMatcher
{
- public function getMatches(array $tokens, array $info = array())
+ public function getMatches(array $tokens, array $info = [])
{
array_pop($tokens); // open bracket
try {
$reflection = new \ReflectionFunction($functionName[1]);
} catch (\ReflectionException $e) {
- return array();
+ return [];
}
$parameters = $reflection->getParameters();