CodeIgniter4
CodeIgniter4 copied to clipboard
fix: rename Entity::setAttributes() to avoid name collision
Description Fixes #5762
Checklist:
- [x] Securely signed commits
- [] Component(s) with PHPDoc blocks, only if necessary or adds value
- [ ] Unit testing, with >80% coverage
- [ ] User guide updated
- [x] Conforms to style guide
@kenjis Is this still relevant after #5809?
At least, this PR won't be merged into 4.x. But I want to fix this bad design in the future.
I like the injectRawData naming. It can be merged into 4.x if setAttributes is still kept as deprecated so that we can upgrade before the next major version.
I sent PR #7208