git: 798fa7e21115 - main - devel/arcanist-lib: Fix for PHP 8.4.0RC3 (revisited)

From: Michael Gmelin <grembo_at_FreeBSD.org>
Date: Mon, 11 Nov 2024 17:05:24 UTC
The branch main has been updated by grembo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=798fa7e211151504b0f9da25e19275bb254a8ece

commit 798fa7e211151504b0f9da25e19275bb254a8ece
Author:     Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2024-11-11 17:03:17 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2024-11-11 17:03:17 +0000

    devel/arcanist-lib: Fix for PHP 8.4.0RC3 (revisited)
    
    This time including the patch.
    
    Reported by:    cracauer
    Differential Revision:  https://reviews.freebsd.org/D47376
---
 devel/arcanist-lib/Makefile                               |  2 +-
 devel/arcanist-lib/files/patch-src_future_FutureProxy.php | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/devel/arcanist-lib/Makefile b/devel/arcanist-lib/Makefile
index 0289addfe9d7..0bd44bc6d3f9 100644
--- a/devel/arcanist-lib/Makefile
+++ b/devel/arcanist-lib/Makefile
@@ -1,6 +1,6 @@
 PORTNAME?=	arcanist
 PORTVERSION?=	20220518
-PORTREVISION?=	6
+PORTREVISION?=	7
 CATEGORIES?=	devel
 PKGNAMESUFFIX=	${SLAVE_PKGNAMESUFFIX}${PHP_PKGNAMESUFFIX}
 
diff --git a/devel/arcanist-lib/files/patch-src_future_FutureProxy.php b/devel/arcanist-lib/files/patch-src_future_FutureProxy.php
new file mode 100644
index 000000000000..f6d80a939b2a
--- /dev/null
+++ b/devel/arcanist-lib/files/patch-src_future_FutureProxy.php
@@ -0,0 +1,11 @@
+--- src/future/FutureProxy.php.orig	2022-05-17 23:20:14 UTC
++++ src/future/FutureProxy.php
+@@ -8,7 +8,7 @@ abstract class FutureProxy extends Future {
+ 
+   private $proxied;
+ 
+-  public function __construct(Future $proxied = null) {
++  public function __construct(?Future $proxied = null) {
+     if ($proxied) {
+       $this->setProxiedFuture($proxied);
+     }