You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #718 [Platform] Support boolean string conversion in AbstractModelCatalog::parseModelName() (sonnymilton)
This PR was squashed before being merged into the main branch.
Discussion
----------
[Platform] Support boolean string conversion in `AbstractModelCatalog::parseModelName()`
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Docs? | no <!-- required for new features -->
| Issues | Fix#713 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
This PR extends the query parameter normalization logic in `AbstractModelCatalog` to handle boolean-like strings (`"true"` / `"false"`) in addition to numeric strings:
- Query parameters such as `?think=true` or `?think=false` are now correctly converted to PHP booleans instead of remaining plain strings.
- Conversion is applied recursively, so nested arrays produced by `parse_str()` also normalize their boolean values.
- Numeric string handling is preserved as before.
### Tests
New test cases were added to ensure:
- Boolean string parameters are converted properly (`true`/`false`).
- Recursive conversion inside nested query arrays works as expected.
- Mixed parameters with numbers, booleans, and plain strings remain consistent.
Commits
-------
f57c279 [Platform] Support boolean string conversion in `AbstractModelCatalog::parseModelName()`
0 commit comments