phpFinTS icon indicating copy to clipboard operation
phpFinTS copied to clipboard

getSupportedTanMechanisms: assertion fails for class HITANv6

Open carli2 opened this issue 4 years ago • 5 comments

lib/Fhp/Response/GetVariables.php fails at line 49:

            if (!($hitans instanceof HITANSv6)) {
                throw new \AssertionError(); Bug
            }

the assertion is thrown even if $hitans is of the correct type.

I suppose it is a problem with

use Fhp\Segment\HITANS\HITANSv6;

which has an other class name when parsed by the XML parser.

Can you please either fix the classname or remove the assertion?

carli2 avatar Jun 11 '20 19:06 carli2

Comment: I'm using the library via composer's autoload

carli2 avatar Jun 11 '20 19:06 carli2

You're using the old version of the library, which is not supported anymore. Please install from master for now.

Philipp91 avatar Jun 11 '20 19:06 Philipp91

What is the composer line for this version? I cannot deploy a git version; would be cool to release the new version on composer.

carli2 avatar Jun 11 '20 19:06 carli2

I'm working on a few last improvements to make sure the API is stable.

Philipp91 avatar Jun 11 '20 19:06 Philipp91

What is the composer line for this version? I cannot deploy a git version; would be cool to release the new version on composer.

You can use the version dev-master in the meantime. https://packagist.org/packages/nemiah/php-fints#dev-master

ampaze avatar Jun 11 '20 20:06 ampaze