php-sdk
php-sdk copied to clipboard
Transaction: getState() method returns string
It seems like this line is giving wrong type information. The function does not return an instance of the class TransactionState, but a string.
/**
* Gets state
*
* @return \PostFinanceCheckout\Sdk\Model\TransactionState
*/
public function getState()
{
return $this->container['state'];
}
https://github.com/pfpayments/php-sdk/blob/39c68c8b6884e78254d5d89fb9782c1e4d2286e8/lib/Model/Transaction.php#L2134C8-L2134C8