Issue in v0.3, missing argument in call to Decrypter::__construct from decrypt.php
Here is the error message:
./decrypt.php sysPass-4a0765e30c8d2c959253955b2acd17b31401ee08.xml Tres16Bon** Gravel5mature-risk db.csv PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Decrypter\Decrypter::__construct(), 3 passed in /home/samy/sysPass-XML-Decrypter-v0.3/decrypt.php on line 20 and exactly 4 expected in /home/samy/sysPass-XML-Decrypter-v0.3/src/Decrypter.php:20 Stack trace: #0 /home/samy/sysPass-XML-Decrypter-v0.3/decrypt.php(20): Decrypter\Decrypter->__construct() #1 /home/samy/sysPass-XML-Decrypter-v0.3/decrypt.php(72): main() #2 {main} thrown in /home/samy/sysPass-XML-Decrypter-v0.3/src/Decrypter.php on line 20
The issue is fixed in the last commits, but not in the latest release. This is because Decrypter.php requires the argument $format, even though it is unused, even in the latest commits. The release should be updated, and removing $format from Decrypter.php as it is an unused variable would be a good idea :)