Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc!: remove support for strict-array type #259

Merged
merged 1 commit into from Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion src/Type/Parser/Lexer/NativeLexer.php
Expand Up @@ -74,7 +74,6 @@ public function tokenize(string $symbol): Token
case 'integer':
return IntegerToken::get();
case 'array':
case 'strict-array':
return ArrayToken::array();
case 'non-empty-array':
return ArrayToken::nonEmptyArray();
Expand Down
6 changes: 0 additions & 6 deletions tests/Functional/Type/Parser/Lexer/NativeLexerTest.php
Expand Up @@ -628,12 +628,6 @@ public function parse_valid_types_returns_valid_result_data_provider(): iterable
'type' => ShapedArrayType::class,
];

yield 'Strict shaped array' => [
'raw' => 'strict-array{foo: string}',
'transformed' => 'array{foo: string}',
'type' => ShapedArrayType::class,
];

yield 'Shaped array with single quote key' => [
'raw' => "array{'foo': string}",
'transformed' => "array{'foo': string}",
Expand Down