You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the incoming invoice from Twinfield has a performancetype tag, the mapper tries to use setPerformanceType() on the InvoiceLine to set the value. The setter expects the PerformanceType enum, but the value from the XML document is never cast to the enum and passed as a string.
The following exception then occurs:
Argument 1 passed to PhpTwinfield\InvoiceLine::setPerformanceType() must be an instance of PhpTwinfield\Enums\PerformanceType or null, string given, called in vendor/php-twinfield/twinfield/src/Mappers/InvoiceMapper.php on line 107
This means either the method signature should allow strings to be passed, or the string from the XML document should be cast to the PerformanceType enum before calling the setter.
The text was updated successfully, but these errors were encountered:
When the incoming invoice from Twinfield has a
performancetype
tag, the mapper tries to usesetPerformanceType()
on theInvoiceLine
to set the value. The setter expects thePerformanceType
enum, but the value from the XML document is never cast to the enum and passed as a string.The following exception then occurs:
This means either the method signature should allow strings to be passed, or the string from the XML document should be cast to the
PerformanceType
enum before calling the setter.The text was updated successfully, but these errors were encountered: