Feature #9456
MVC arguments should be converted to their target type
Status:
Resolved
Priority:
Should have
Assignee:
Category:
MVC
Target version:
Start date:
2010-08-25
Due date:
% Done:
100%
Estimated time:
PHP Version:
Has patch:
Complexity:
Description
MVC arguments are mapped from the arguments found in the HTTP request (GET / POST ...) to controller argument objects. Because the raw arguments provided by the requests are strings, they currently also end up as strings in the argument objects.
We should instead transform the arguments to their declared type if possible. As we already know the designated data type for each argument (from the annotations and type hints) that should be easily possible.
Related issues