Skip to content

Commit 8fdc7a0

Browse files
committed
small fixes after tests with phpdocumentor
1 parent ad9e3c2 commit 8fdc7a0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/phpDocumentor/Reflection/ClassReflector/ConstantReflector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use phpDocumentor\Reflection\ConstantReflector as BaseConstantReflector;
1717
use phpDocumentor\Reflection\DocBlock\Context;
1818
use PhpParser\Node\Stmt\ClassConst;
19-
use PhpParser\Node\Stmt\Const_;
19+
use PhpParser\Node\Const_;
2020

2121
class ConstantReflector extends BaseConstantReflector
2222
{
@@ -35,7 +35,7 @@ public function __construct(
3535
Context $context,
3636
Const_ $node
3737
) {
38-
parent::__construct($node, $context);
38+
BaseReflector::__construct($node, $context);
3939
$this->constant = $stmt;
4040
}
4141
}

src/phpDocumentor/Reflection/Lexer.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
namespace phpDocumentor\Reflection;
1414

15-
use PhpParser_Lexer;
16-
use PhpParser_Parser;
15+
use PhpParser\Lexer as BaseLexer;
16+
use PhpParser\Parser;
1717

1818
/**
1919
* Custom lexer for phpDocumentor.
@@ -28,7 +28,7 @@
2828
* @license http://www.opensource.org/licenses/mit-license.php MIT
2929
* @link http://phpdoc.org
3030
*/
31-
class Lexer extends PhpParser_Lexer
31+
class Lexer extends BaseLexer
3232
{
3333
/**
3434
* Retrieves the next token and determines the associated attributes and
@@ -67,8 +67,8 @@ public function getNextToken(
6767
*/
6868
protected function isTokenScalar($tokenId)
6969
{
70-
return $tokenId == PhpParser_Parser::T_CONSTANT_ENCAPSED_STRING
71-
|| $tokenId == PhpParser_Parser::T_LNUMBER
72-
|| $tokenId == PhpParser_Parser::T_DNUMBER;
70+
return $tokenId == Parser::T_CONSTANT_ENCAPSED_STRING
71+
|| $tokenId == Parser::T_LNUMBER
72+
|| $tokenId == Parser::T_DNUMBER;
7373
}
7474
}

0 commit comments

Comments
 (0)