git: acd67e6f2d09 - main - devel/phabricator: Fix php 8.1 issue when rendering avatars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Oct 2023 16:46:58 UTC
The branch main has been updated by grembo: URL: https://cgit.FreeBSD.org/ports/commit/?id=acd67e6f2d0911d5e194f7b1b54cafb95b13a93d commit acd67e6f2d0911d5e194f7b1b54cafb95b13a93d Author: Michael Gmelin <grembo@FreeBSD.org> AuthorDate: 2023-10-12 16:45:41 +0000 Commit: Michael Gmelin <grembo@FreeBSD.org> CommitDate: 2023-10-12 16:46:32 +0000 devel/phabricator: Fix php 8.1 issue when rendering avatars --- devel/phabricator/Makefile | 2 +- ...files_builtin_PhabricatorFilesComposeAvatarBuiltinFile.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/devel/phabricator/Makefile b/devel/phabricator/Makefile index 7b5487bf4521..7631ebe26744 100644 --- a/devel/phabricator/Makefile +++ b/devel/phabricator/Makefile @@ -1,6 +1,6 @@ PORTNAME= phabricator PORTVERSION= 20211218 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} diff --git a/devel/phabricator/files/patch-src_applications_files_builtin_PhabricatorFilesComposeAvatarBuiltinFile.php b/devel/phabricator/files/patch-src_applications_files_builtin_PhabricatorFilesComposeAvatarBuiltinFile.php new file mode 100644 index 000000000000..6c9dcaaa9457 --- /dev/null +++ b/devel/phabricator/files/patch-src_applications_files_builtin_PhabricatorFilesComposeAvatarBuiltinFile.php @@ -0,0 +1,11 @@ +--- src/applications/files/builtin/PhabricatorFilesComposeAvatarBuiltinFile.php.orig 2021-12-18 19:11:09 UTC ++++ src/applications/files/builtin/PhabricatorFilesComposeAvatarBuiltinFile.php +@@ -188,7 +188,7 @@ final class PhabricatorFilesComposeAvatarBuiltinFile + $g = $rgba[1]; + $b = $rgba[2]; + $a = $rgba[3]; +- $a = (1 - $a) * 255; ++ $a = round(((1 - $a) * 255), 0); + return ($a << 24) | ($r << 16) | ($g << 8) | $b; + } +