Skip to content

Commit 9da6050

Browse files
DanielEScherzerkocsismate
authored andcommitted
gen_stub: add visibility to class constants
Make everything public for now
1 parent eafddfd commit 9da6050

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

build/gen_stub.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -772,9 +772,9 @@ public function toTypeMask(): string {
772772
}
773773

774774
class ArgInfo {
775-
const SEND_BY_VAL = "0";
776-
const SEND_BY_REF = "1";
777-
const SEND_PREFER_REF = "ZEND_SEND_PREFER_REF";
775+
public const SEND_BY_VAL = "0";
776+
public const SEND_BY_REF = "1";
777+
public const SEND_PREFER_REF = "ZEND_SEND_PREFER_REF";
778778

779779
public /* readonly */ string $name;
780780
public /* readonly */ string $sendBy;
@@ -1088,11 +1088,11 @@ public function isDestructor(): bool {
10881088
}
10891089

10901090
class ReturnInfo {
1091-
const REFCOUNT_0 = "0";
1092-
const REFCOUNT_1 = "1";
1093-
const REFCOUNT_N = "N";
1091+
public const REFCOUNT_0 = "0";
1092+
public const REFCOUNT_1 = "1";
1093+
public const REFCOUNT_N = "N";
10941094

1095-
const REFCOUNTS_NONSCALAR = [
1095+
public const REFCOUNTS_NONSCALAR = [
10961096
self::REFCOUNT_1,
10971097
self::REFCOUNT_N,
10981098
];

0 commit comments

Comments
 (0)