Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
2.5.0
-
None
-
PostgreSQL 11.x
Description
When i try to perform a query with a numeric remote, i get a database error.
When i explicitly cast it to a string value it works, but the static code analysis fails (as the docblock of the criterion says, that an int is required).
$filter = new Criterion\RemoteId(123); $this->searchSvc->findSingle($filter);
fails
$filter = new Criterion\RemoteId((string)123); $this->searchSvc->findSingle($filter);
works
I would suggest at least updating the docblock or doing a type casting inside the constructor to be on the safe side.
I will try to create a pull request, addressing this issue.