Skip to content

1.0.0

Compare
Choose a tag to compare
@PowerKiKi PowerKiKi released this 30 Dec 17:59
· 83 commits to master since this release
9255619
  • PHP 7.4 compatiblity
  • Type hinting everywhere and strict types
  • Lots of code quality improvement via PHPStan and PhpStorm
  • Returning null instead of BadMethodCallException

BREAKING CHANGES

Genkgo\Camt\DTO\ChargesRecord

  • getChargesIncludedIndicator() does not have non ASCII character in method name anymore

Genkgo\Camt\DTO\Reference

  • getAccountServiceReference() is renamed to getAccountServicerReference()

Genkgo\Camt\DTO\EntryTransactionDetail

  • getReferences() was deleted, instead use getReference()
  • getAmountDetails() and getAmount() both returns ?Money instead of
    the old Amount and AmountDetails classes. Your code should be adapted like so:
- $amount = $entryTransactionDetail->getAmount()->getAmount();
+ $amount = $entryTransactionDetail->getAmount();

Returning null instead of BadMethodCallException

We no longer throw an exception if something is null. This allow end-user to query
for the existence of something without having to catch exception.

In most cases, you should be able to remove your try/catch blocks.