We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$form = rex_post('form', 'array[string]', []); should be detected as array<string> etc.
$form = rex_post('form', 'array[string]', []);
array<string>
The text was updated successfully, but these errors were encountered:
array[string] scheint mir unterstützt zu werden:
array[string]
rexstan/lib/extension/RexFunctionsDynamicReturnTypeExtension.php
Lines 142 to 153 in e4d1213
Was mir aber zu fehlen scheint (nicht getestet), sind Array-Shapes, die in rex so notiert werden:
$form = rex_post('form', [ ['foo', 'int', 1], ['kitchen', 'array[string]'], ]);
Für das psalm-Plugin habe ich es hier umgesetzt (keine Ahnung ob hilfreich): https://github.com/redaxo/psalm-plugin/blob/main/src/Provider/RexTypeReturnProvider.php#L138
Sorry, something went wrong.
In 5.17 kam noch eine weitere Array-Variante hinzu: redaxo/redaxo#6031
No branches or pull requests
$form = rex_post('form', 'array[string]', []);
should be detected asarray<string>
etc.The text was updated successfully, but these errors were encountered: