File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
src/phpDocumentor/Reflection Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 16
16
use phpDocumentor \Reflection \ConstantReflector as BaseConstantReflector ;
17
17
use phpDocumentor \Reflection \DocBlock \Context ;
18
18
use PhpParser \Node \Stmt \ClassConst ;
19
- use PhpParser \Node \Stmt \ Const_ ;
19
+ use PhpParser \Node \Const_ ;
20
20
21
21
class ConstantReflector extends BaseConstantReflector
22
22
{
@@ -35,7 +35,7 @@ public function __construct(
35
35
Context $ context ,
36
36
Const_ $ node
37
37
) {
38
- parent ::__construct ($ node , $ context );
38
+ BaseReflector ::__construct ($ node , $ context );
39
39
$ this ->constant = $ stmt ;
40
40
}
41
41
}
Original file line number Diff line number Diff line change 12
12
13
13
namespace phpDocumentor \Reflection ;
14
14
15
- use PhpParser_Lexer ;
16
- use PhpParser_Parser ;
15
+ use PhpParser \ Lexer as BaseLexer ;
16
+ use PhpParser \ Parser ;
17
17
18
18
/**
19
19
* Custom lexer for phpDocumentor.
28
28
* @license http://www.opensource.org/licenses/mit-license.php MIT
29
29
* @link http://phpdoc.org
30
30
*/
31
- class Lexer extends PhpParser_Lexer
31
+ class Lexer extends BaseLexer
32
32
{
33
33
/**
34
34
* Retrieves the next token and determines the associated attributes and
@@ -67,8 +67,8 @@ public function getNextToken(
67
67
*/
68
68
protected function isTokenScalar ($ tokenId )
69
69
{
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 ;
73
73
}
74
74
}
You can’t perform that action at this time.
0 commit comments