From 9da6050e0865a26746d3e17f26e971ae24a61a16 Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Tue, 4 Feb 2025 10:58:29 -0800 Subject: [PATCH] gen_stub: add visibility to class constants Make everything public for now --- build/gen_stub.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/build/gen_stub.php b/build/gen_stub.php index 916ae9cc32a..f3cac6d2683 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -772,9 +772,9 @@ class ArginfoType { } class ArgInfo { - const SEND_BY_VAL = "0"; - const SEND_BY_REF = "1"; - const SEND_PREFER_REF = "ZEND_SEND_PREFER_REF"; + public const SEND_BY_VAL = "0"; + public const SEND_BY_REF = "1"; + public const SEND_PREFER_REF = "ZEND_SEND_PREFER_REF"; public /* readonly */ string $name; public /* readonly */ string $sendBy; @@ -1088,11 +1088,11 @@ class MethodName implements FunctionOrMethodName { } class ReturnInfo { - const REFCOUNT_0 = "0"; - const REFCOUNT_1 = "1"; - const REFCOUNT_N = "N"; + public const REFCOUNT_0 = "0"; + public const REFCOUNT_1 = "1"; + public const REFCOUNT_N = "N"; - const REFCOUNTS_NONSCALAR = [ + public const REFCOUNTS_NONSCALAR = [ self::REFCOUNT_1, self::REFCOUNT_N, ];