diff --git a/src/ReflectionEngine.php b/src/ReflectionEngine.php index 3c86346e..645a4c13 100644 --- a/src/ReflectionEngine.php +++ b/src/ReflectionEngine.php @@ -11,7 +11,6 @@ namespace Go\ParserReflection; -use Exception; use Go\ParserReflection\Instrument\PathResolver; use Go\ParserReflection\NodeVisitor\RootNamespaceNormalizer; use InvalidArgumentException; diff --git a/tests/ReflectionParameterTest.php b/tests/ReflectionParameterTest.php index 3f8d1124..f856ec5c 100644 --- a/tests/ReflectionParameterTest.php +++ b/tests/ReflectionParameterTest.php @@ -27,7 +27,7 @@ public function testGeneralInfoGetters($fileName) $allNameGetters = [ 'isArray', 'isCallable', 'isOptional', 'isPassedByReference', 'isDefaultValueAvailable', 'getPosition', 'canBePassedByValue', 'allowsNull', 'getDefaultValue', 'getDefaultValueConstantName', - 'isDefaultValueConstant', '__toString' + 'isDefaultValueConstant', '__toString', 'getAttributes' ]; $onlyWithDefaultValues = array_flip([ 'getDefaultValue', 'getDefaultValueConstantName', 'isDefaultValueConstant' @@ -72,6 +72,7 @@ public static function fileProvider() $files = ['PHP5.5' => [__DIR__ . '/Stub/FileWithParameters55.php']]; $files['PHP5.6'] = [__DIR__ . '/Stub/FileWithParameters56.php']; $files['PHP7.0'] = [__DIR__ . '/Stub/FileWithParameters70.php']; + $files['PHP8.0'] = [__DIR__ . '/Stub/FileWithParameters80.php']; return $files; }