File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ public static function isKeyword($type)
129129 return false ;
130130 }
131131
132- $ typeLC = \strtolower (\trim ($ type ));
132+ $ typeLC = \strtolower (\ltrim ( \ trim ($ type), '\\' ));
133133 return isset (self ::$ keywordTypes [$ typeLC ]);
134134 }
135135
Original file line number Diff line number Diff line change @@ -117,6 +117,13 @@ public static function dataIsKeywordValid()
117117 ];
118118 }
119119
120+ $ data ['true: fully qualified ' ] = ['type ' => '\true ' ];
121+ $ data ['false: fully qualified ' ] = ['type ' => '\false ' ];
122+ $ data ['null: fully qualified ' ] = ['type ' => '\null ' ];
123+ $ data ['true: fully qualified, uppercase ' ] = ['type ' => '\TRUE ' ];
124+ $ data ['false: fully qualified, uppercase ' ] = ['type ' => '\FALSE ' ];
125+ $ data ['null: fully qualified, uppercase ' ] = ['type ' => '\NULL ' ];
126+
120127 return $ data ;
121128 }
122129
You can’t perform that action at this time.
0 commit comments