Fixed tests

This commit is contained in:
Jan Böhmer 2026-03-07 22:47:05 +01:00
parent 7f8f5990a7
commit 13b98cc0b1
3 changed files with 11 additions and 8 deletions

View file

@ -271,6 +271,8 @@ readonly class EIGP114BarcodeScanResult implements BarcodeScanResultInterface
*/
public static function parseFormat06Code(string $input): self
{
$rawInput = $input;
//Ensure that the input is a valid format06 code
if (!self::isFormat06Code($input)) {
throw new \InvalidArgumentException("The given input is not a valid format06 code");
@ -306,7 +308,7 @@ readonly class EIGP114BarcodeScanResult implements BarcodeScanResultInterface
$results[$key] = $fieldValue;
}
return new self($results, $input);
return new self($results, $rawInput);
}
public function getDecodedForInfoMode(): array