laravel/framework — pull request #5431 by jkdalton (2014-08-12 20:12:33+00:00)
Title: Updated class_uses_recursive to use array() not []

The use of square array brackets causes breakage when using PHP < 5.4.

```php
// Orginal code @line2 #401-420
if ( ! function_exists('class_uses_recursive'))
{
/**
* Returns all traits used by a class, it's subclasses and trait of their traits
*
* @param string $class
* @return array
*/
function class_uses_recursive($class)
{
$results = [];

foreach (array_merge([$class => $class], class_parents($class)) as $class)
{
$results += trait_uses_recursive($class);
}

return array_unique($results);
}
}
````

```php
// Replacement code for lines #401-420
if ( ! function_exists('class_uses_recursive'))
{
/**
* Returns all traits used by a class, it's subclasses and trait of their traits
*
* @param string $class
* @return array
*/
function class_uses_recursive($class)
{
$results = array();

foreach (array_merge(array($class => $class), class_parents($class)) as $class)
{
$results += trait_uses_recursive($class);
}

return array_unique($results);
}
}
``