diff options
author | Michael Gmelin <grembo@FreeBSD.org> | 2022-09-08 18:09:09 +0200 |
---|---|---|
committer | Michael Gmelin <grembo@FreeBSD.org> | 2022-09-08 18:21:56 +0200 |
commit | e1abc97d9ede14c8e14b120de52b350acd77f3f4 (patch) | |
tree | c3e6f810da7e859cb0030868cbabfc433419ef95 /devel/arcanist-lib/files/patch-src_parser_ArcanistBundle.php | |
parent | lang/go118: Update to 1.18.6 (diff) |
devel/arcanist-lib: Fix `arc patch` on PHP 8.1
Diffstat (limited to 'devel/arcanist-lib/files/patch-src_parser_ArcanistBundle.php')
-rw-r--r-- | devel/arcanist-lib/files/patch-src_parser_ArcanistBundle.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/arcanist-lib/files/patch-src_parser_ArcanistBundle.php b/devel/arcanist-lib/files/patch-src_parser_ArcanistBundle.php new file mode 100644 index 000000000000..095e1b24ee81 --- /dev/null +++ b/devel/arcanist-lib/files/patch-src_parser_ArcanistBundle.php @@ -0,0 +1,20 @@ +--- src/parser/ArcanistBundle.php.orig 2022-09-08 16:04:09 UTC ++++ src/parser/ArcanistBundle.php +@@ -762,7 +762,7 @@ final class ArcanistBundle extends Phobject { + $old_data = $this->getBlob($old_phid, $name); + } + +- $old_length = strlen($old_data); ++ $old_length = strlen($old_data ?? ''); + + // Here, and below, the binary will be emitted with base85 encoding. This + // encoding encodes each 4 bytes of input in 5 bytes of output, so we may +@@ -795,7 +795,7 @@ final class ArcanistBundle extends Phobject { + $new_data = $this->getBlob($new_phid, $name); + } + +- $new_length = strlen($new_data); ++ $new_length = strlen($new_data ?? ''); + $this->reserveBytes($new_length * 5 / 4); + + if ($new_data === null) { |