Skip to content

Commit

Permalink
misc!: remove support for strict-array type
Browse files Browse the repository at this point in the history
Psalm went backward on the introduction of the new `strict-array` type, see
vimeo/psalm#8701 for more information.
  • Loading branch information
romm committed Nov 21, 2022
1 parent 9c7e884 commit cb27525
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
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

0 comments on commit cb27525

Please sign in to comment.