Use class PhpReflection directly from Nette Framework instead of library parse-use-statements

This commit is contained in:
Thach Nguyen
2018-01-31 21:11:02 +07:00
parent 66d6e3df01
commit 7c81b6388e
3 changed files with 168 additions and 4 deletions
+1 -2
View File
@@ -14,7 +14,6 @@ use phpDocumentor\Reflection\DocBlock;
use phpDocumentor\Reflection\DocBlock\Context;
use phpDocumentor\Reflection\DocBlock\Tag;
use phpDocumentor\Reflection\DocBlock\Tag\ReturnTag;
use Kdyby\ParseUseStatements\UseStatements;
class Method
{
@@ -325,7 +324,7 @@ class Method
protected static function getUseStatements(\ReflectionClass $class)
{
try {
return UseStatements::getUseStatements($class);
return PhpReflection::getUseStatements($class);
} catch (\Exception $e) {
return array();
}