php-abraflexi icon indicating copy to clipboard operation
php-abraflexi copied to clipboard

Incorrect type annotations in \AbraFlexi\Exception class

Open jaroslavlibal opened this issue 1 year ago • 0 comments

Hello,

the $errorMessages property tn the \AbraFlexi\Exception class has an incorrect array<string> annotation, so do the getErrorMessages() and getErrorMessage() methods.

The getErrorMessages() method returns array of arrays like var_dumped below:

array(1) {
  [0]=>
  array(1) {
    ["message"]=>
    string(105) "Adresa https://server/c/company-name/faktura-vydana/xxx není platná."
  }
}

Introduced here: https://github.com/Spoje-NET/php-abraflexi/commit/23a0e127b1bb4589ce8d85b53f45e06ec71bf380#diff-6c213693e8ea3922558d3fe889351f27b5054c289a507fa15289c29d56e53285R30

jaroslavlibal avatar Nov 19 '24 15:11 jaroslavlibal