File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ module.exports = {
346
346
* trait ::= T_TRAIT T_STRING (T_EXTENDS (NAMESPACE_NAME ',')* NAMESPACE_NAME)? '{' FUNCTION* '}'
347
347
* ```
348
348
*/
349
- read_trait : function ( ) {
349
+ read_trait_declaration_statement : function ( ) {
350
350
const result = this . node ( "trait" ) ;
351
351
// graceful mode : ignore token & go next
352
352
if ( this . token !== this . tok . T_TRAIT ) {
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ module.exports = {
48
48
case this . tok . T_INTERFACE :
49
49
return this . read_interface_declaration_statement ( ) ;
50
50
case this . tok . T_TRAIT :
51
- return this . read_trait ( ) ;
51
+ return this . read_trait_declaration_statement ( ) ;
52
52
case this . tok . T_USE :
53
53
return this . read_use_statement ( ) ;
54
54
case this . tok . T_CONST : {
@@ -161,7 +161,7 @@ module.exports = {
161
161
case this . tok . T_INTERFACE :
162
162
return this . read_interface_declaration_statement ( ) ;
163
163
case this . tok . T_TRAIT :
164
- return this . read_trait ( ) ;
164
+ return this . read_trait_declaration_statement ( ) ;
165
165
case this . tok . T_HALT_COMPILER : {
166
166
this . raiseError (
167
167
"__HALT_COMPILER() can only be used from the outermost scope"
You can’t perform that action at this time.
0 commit comments