Skip to content

3.27.0

Choose a tag to compare

@spryker-release-bot spryker-release-bot released this 14 Dec 16:37
· 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 strict to 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 array are now nullable by default. If you want a collection, make sure to define an iterable type on it, e.g. int[] or string[].
  • Adjusted validation checks so that the singular attribute is mandatory for associative transfer properties and must not match the name attribute value when in strict mode.
  • Transfers have a new getter for retrieving associative property collection items when in strict mode.