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
Currently it has the options
'map' => [], 'options' => [],
But I get
findUser(): Argument #2 ($uid) must be of type int, string given
With URL
/admin/profiles?uid=115
I guess the string '115' is never casted to int, the custom finder however is
public function findUser(SelectQuery $query, int $uid)
Sure, we can workaround it using
public function findUser(SelectQuery $query, int|string $uid)
But it seems a bit less clean than allowing
'cast' => [ 'field_name' => 'int', ],
or alike as additional option to cast the value accordingly before passing it on?
We cannot always control the (finder) code, or signature. Especially for BC reasons if there are types already set.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Currently it has the options
But I get
With URL
I guess the string '115' is never casted to int, the custom finder however is
Sure, we can workaround it using
But it seems a bit less clean than allowing
or alike as additional option to cast the value accordingly before passing it on?
We cannot always control the (finder) code, or signature. Especially for BC reasons if there are types already set.
The text was updated successfully, but these errors were encountered: