Add basic support for strict array tokens

This commit is contained in:
Daniil Gentili 2022-11-05 14:34:07 +01:00 committed by Romain Canon
parent 752ad9d12e
commit ce715b4467

View File

@ -74,6 +74,7 @@ final class NativeLexer implements TypeLexer
case 'integer': case 'integer':
return IntegerToken::get(); return IntegerToken::get();
case 'array': case 'array':
case 'strict-array':
return ArrayToken::array(); return ArrayToken::array();
case 'non-empty-array': case 'non-empty-array':
return ArrayToken::nonEmptyArray(); return ArrayToken::nonEmptyArray();