diff --git a/tests/Functional/Type/Parser/Lexer/NativeLexerTest.php b/tests/Functional/Type/Parser/Lexer/NativeLexerTest.php index 88c98c0..2dd053f 100644 --- a/tests/Functional/Type/Parser/Lexer/NativeLexerTest.php +++ b/tests/Functional/Type/Parser/Lexer/NativeLexerTest.php @@ -628,6 +628,13 @@ final class NativeLexerTest extends TestCase '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}",