File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ public static function fromPhpDoc(string $type): SimpleType
154
154
case "resource " :
155
155
case "mixed " :
156
156
case "static " :
157
+ case "never " :
157
158
return new SimpleType (strtolower ($ type ), true );
158
159
case "self " :
159
160
throw new Exception ('The exact class name must be used instead of "self" ' );
@@ -205,6 +206,8 @@ public function toTypeCode(): string {
205
206
return "IS_MIXED " ;
206
207
case "static " :
207
208
return "IS_STATIC " ;
209
+ case "never " :
210
+ return "IS_NEVER " ;
208
211
default :
209
212
throw new Exception ("Not implemented: $ this ->name " );
210
213
}
@@ -235,6 +238,8 @@ public function toTypeMask() {
235
238
return "MAY_BE_ANY " ;
236
239
case "static " :
237
240
return "MAY_BE_STATIC " ;
241
+ case "never " :
242
+ return "MAY_BE_NEVER " ;
238
243
default :
239
244
throw new Exception ("Not implemented: $ this ->name " );
240
245
}
You can’t perform that action at this time.
0 commit comments