From 2ba24eeaf253f14ac91d3bf11cee998ab18f146c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 30 Jul 2021 13:11:01 +0200 Subject: fix regression in Validator/Barcode/Royalmail using patch from https://github.com/laminas/laminas-validator/pull/106 --- 106.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 106.patch (limited to '106.patch') diff --git a/106.patch b/106.patch new file mode 100644 index 0000000..64601bc --- /dev/null +++ b/106.patch @@ -0,0 +1,23 @@ +From 5b8b5a95c7e7736ff7553caa4745248a86ef59f2 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Fri, 30 Jul 2021 13:04:28 +0200 +Subject: [PATCH] fix Regression in RoyalMail + +--- + src/Barcode/Royalmail.php | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/Barcode/Royalmail.php b/src/Barcode/Royalmail.php +index 211f9cbc..8d5cd5dc 100644 +--- a/src/Barcode/Royalmail.php ++++ b/src/Barcode/Royalmail.php +@@ -124,7 +124,8 @@ protected function royalmail($value) + $rowchkvalue = array_keys($this->rows, $rowvalue); + $colchkvalue = array_keys($this->columns, $colvalue); + $intersect = array_intersect($rowchkvalue, $colchkvalue); +- $chkvalue = current($intersect); ++ $chkvalue = (string)current($intersect); ++ + if ($chkvalue === $checksum) { + return true; + } -- cgit