Bug: Errors on Model::toArray() when model contains uninitialsed values.
Quick Information
- Operating System:
- Browser: Chrome / Firefox / Edge / Safari
- Device: Computer / Tablet / Mobile
What Happened?
Errors are thrown when attempting to use Model::toArray()
on a model that contains uninitialized values. This issue causes the conversion process to fail, leading to unexpected behavior and application crashes.
Expected result
The Model::toArray()
method should handle uninitialized values gracefully, either by skipping them or by initializing them with a default value before conversion. This would prevent errors and ensure a smooth conversion process.
Steps to reproduce
- Create a model with some uninitialized values.
- Call the
Model::toArray()
method on the model. - Observe that errors are thrown due to the uninitialized values.
Screenshots
Priority/Severity
-
High (anything that impacts the normal user flow or blocks app usage) -
Medium (anything that negatively affects the user experience) -
Low (anything else e.g., typos, missing icons, layout issues, etc.)