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
non-empty-string
Hi,
The following works:
$payload = Type\shape([ 'repository' => Type\non_empty_string(), ])->coerce($payload); PHPStan\dumpType($payload);
dumps
Dumped type: array{repository: non-empty-string}
however, the non_empty_string is lost if nested:
non_empty_string
$payload = Type\shape([ 'repository' => Type\non_empty_vec( Type\shape([ 'name' => Type\non_empty_string(), ]), ), ])->coerce($payload); \PHPStan\dumpType($payload);
Dumped type: array{repository: non-empty-list<array{name: string}>}
The text was updated successfully, but these errors were encountered:
What about with bleeding edge?
Sorry, something went wrong.
yes, bleeding edge is on.
Here's a failing test case, feel free to cherry pick it: 00d0cdc.
No branches or pull requests
Hi,
The following works:
dumps
however, the
non_empty_string
is lost if nested:dumps
The text was updated successfully, but these errors were encountered: