Repository navigation
3.27.0
·
110 commits
to master
since this release
Included commits: 3.26.0...3.27.0
Improvements
Added support for strict (type-safe) transfers:
- New boolean attribute
strictto be used in transfer definition XML files to enable the strict mode on transfer/property level (strict="true"). It will add param and return types to all methods. - If a transfer is strict, so all the properties become it, as well. Make sure to only apply this to new transfers or properties, as it has BC breaking impact for existing ones. The core follows the same rule here.
- Strict transfer properties of type
arrayare now nullable by default. If you want a collection, make sure to define an iterable type on it, e.g.int[]orstring[]. - Adjusted validation checks so that the
singularattribute is mandatory forassociativetransfer properties and must not match thenameattribute value when in strict mode. - Transfers have a new getter for retrieving
associativeproperty collection items when in strict mode.