summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/phabricator/Makefile2
-rw-r--r--devel/phabricator/files/patch-externals_phpqrcode_phpqrcode.php16
2 files changed, 17 insertions, 1 deletions
diff --git a/devel/phabricator/Makefile b/devel/phabricator/Makefile
index 013b838d76bc..4d30b32e4ae1 100644
--- a/devel/phabricator/Makefile
+++ b/devel/phabricator/Makefile
@@ -1,6 +1,6 @@
PORTNAME= phabricator
PORTVERSION= 20211218
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= devel
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
diff --git a/devel/phabricator/files/patch-externals_phpqrcode_phpqrcode.php b/devel/phabricator/files/patch-externals_phpqrcode_phpqrcode.php
new file mode 100644
index 000000000000..2a884bee74e8
--- /dev/null
+++ b/devel/phabricator/files/patch-externals_phpqrcode_phpqrcode.php
@@ -0,0 +1,16 @@
+--- externals/phpqrcode/phpqrcode.php.orig 2025-12-05 14:17:54 UTC
++++ externals/phpqrcode/phpqrcode.php
+@@ -2945,11 +2945,11 @@
+ if($col >= $this->rsblocks[0]->dataLength) {
+ $row += $this->b1;
+ }
+- $ret = $this->rsblocks[$row]->data[$col];
++ $ret = $this->rsblocks[$row]->data[(int) $col];
+ } else if($this->count < $this->dataLength + $this->eccLength) {
+ $row = ($this->count - $this->dataLength) % $this->blocks;
+ $col = ($this->count - $this->dataLength) / $this->blocks;
+- $ret = $this->rsblocks[$row]->ecc[$col];
++ $ret = $this->rsblocks[$row]->ecc[(int) $col];
+ } else {
+ return 0;
+ }