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
docs: document edge-case behavior found in test suite review
- contains() and unique() compare loosely - add the surprising cases to the
docblocks ('1' matches 1 and true; '', false, and null count as duplicates)
- sortBy() reindexes numeric keys but keeps string keys (array_multisort
default) - docs previously said all keys get reindexed
- json_encode() returns raw values, never HTML-encoded, even for SmartArrayHtml
- orRedirect() throws whenever headers are already sent, even with results -
make the fail-fast explicit in the docblock
- debug() calls the load handler once per key - flag it so nobody debugs a row
in a loop with a live database handler
- SmartNull is truthy and == '' - note how to check for it explicitly
- Reword load() error when the handler returns false: "doesn't support field"
instead of "not available" (the handler exists and ran; it declined)
- CHANGELOG: isFirst()/isLast()/position() aren't deprecated - they were
promoted back to first-class in 2.6.2; drop them from the stale deprecation
line
-`isMultipleOf()`, `chunk()`, `smartMap()` - now trigger deprecation notice (isFirst/isLast/position were promoted back to first-class methods in 2.6.2)
59
59
-`toRaw()` and `toHtml()` - use `asRaw()` and `asHtml()` instead
0 commit comments