Skip to content

fix: widen accepted values in set_value()'s $default - #10641

Open
paulbalandan wants to merge 2 commits into
codeigniter4:developfrom
paulbalandan:set-value-non-string-default
Open

paulbalandan wants to merge 2 commits into
codeigniter4:developfrom
paulbalandan:set-value-non-string-default

Conversation

@paulbalandan

Copy link
Copy Markdown
Member

Description
Ref: https://forum.codeigniter.com/showthread.php?tid=94539

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@carson-codeigniter4 carson-codeigniter4 Bot added the bug Verified issues on the current code behavior or pull requests that will fix them label Oct 19, 2026
@paulbalandan
paulbalandan force-pushed the set-value-non-string-default branch from 240ed59 to 6f77131 Compare October 19, 2026 05:49

@neznaika0 neznaika0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any point in checking the array for valid values? I think it’s an unnecessary burden. But the topic starter on the forum mentions this.

@neznaika0

neznaika0 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Is it worth adding a note in changelog about strict types in #10521 ? Previously, this was not approved as BC and was pushed to the next branch.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Verified issues on the current code behavior or pull requests that will fix them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants