package updates

This commit is contained in:
2018-12-19 23:27:43 -06:00
parent aa1da4d4fb
commit 1ffd21369f
1181 changed files with 51194 additions and 11046 deletions

View File

@@ -1,6 +1,10 @@
CHANGELOG
---------
### v3.1.2, 2018.12.16
* Fixed a bug regarding comma trail in group-use statements. See [issue 23](https://github.com/opis/closure/issues/23)
### v3.1.1, 2018.10.02
* Fixed a bug where `parent` keyword was treated like a class-name and scope was not added to the

View File

@@ -19,7 +19,7 @@
},
"require-dev": {
"jeremeamia/superclosure": "^2.0",
"phpunit/phpunit": "^4.0"
"phpunit/phpunit": "^4.0|^5.0|^6.0|^7.0"
},
"autoload": {
"psr-4": {

View File

@@ -775,6 +775,8 @@ class ReflectionClosure extends ReflectionFunction
$state = 'alias';
break;
}
} elseif ($name === '') {
$state = 'start';
} else {
if ($name[0] !== '\\' && $prefix === '') {
$name = '\\' . $name;
@@ -792,7 +794,7 @@ class ReflectionClosure extends ReflectionFunction
$classes[strtolower($alias)] = $prefix . $name;
}
$name = '';
$state = $token == ',' ? 'use' : 'start';
$state = 'use';
}
}
break;