Skip to content

Limit fields updated on setFrom

Compare
Choose a tag to compare
@phpfui phpfui released this 25 Mar 19:25
· 5 commits to main since this release

The second parameter to setFrom is now an array of fields that will be set. This allows you to limit what fields get updated. The default is to update all fields appearing in the first parameter to setFrom().

This introduces a minor breaking change used for internal purposes and should not affect application code. The old second parameter (bool $loaded = false) is now the third parameter. PHPStan will detect this change if used.