Skip to content

Commit

Permalink
Removed unnecessary import
Browse files Browse the repository at this point in the history
  • Loading branch information
POPSuL committed Jun 9, 2017
1 parent 0f7178d commit 9a7de41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Reflection/ReflectionClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use phpDocumentor\Reflection\Types\Object_;
use PhpParser\Node;
use PhpParser\Node\Stmt\Class_ as ClassNode;
use PhpParser\Node\Stmt\ClassConst;
use PhpParser\Node\Stmt\ClassConst as ConstNode;
use PhpParser\Node\Stmt\ClassLike as ClassLikeNode;
use PhpParser\Node\Stmt\ClassMethod;
Expand Down Expand Up @@ -522,7 +521,7 @@ public function getReflectionConstant(string $name) : ?ReflectionClassConstant
*/
private function processReflectionConstants(array $accumulator, Node\Stmt $stmt) : array
{
if ($stmt instanceof ClassConst) {
if ($stmt instanceof ConstNode) {
$const = ReflectionClassConstant::createFromNode($this->reflector, $stmt, $this);
$accumulator[$const->getName()] = $const;
}
Expand Down

0 comments on commit 9a7de41

Please sign in to comment.