@@ -185,8 +185,8 @@ class Context {
185
185
}
186
186
187
187
class ArrayType extends SimpleType {
188
- public /* readonly */ Type $ keyType ;
189
- public /* readonly */ Type $ valueType ;
188
+ private /* readonly */ Type $ keyType ;
189
+ private /* readonly */ Type $ valueType ;
190
190
191
191
public static function createGenericArray (): self
192
192
{
@@ -877,7 +877,7 @@ public function isUnknown(): bool
877
877
}
878
878
879
879
class ConstName extends AbstractConstName {
880
- public /* readonly */ string $ const ;
880
+ private /* readonly */ string $ const ;
881
881
882
882
public function __construct (?Name $ namespace , string $ const )
883
883
{
@@ -914,7 +914,7 @@ public function getDeclarationName(): string
914
914
915
915
class ClassConstName extends AbstractConstName {
916
916
public /* readonly */ Name $ class ;
917
- public /* readonly */ string $ const ;
917
+ private /* readonly */ string $ const ;
918
918
919
919
public function __construct (Name $ class , string $ const )
920
920
{
@@ -940,7 +940,7 @@ public function getDeclarationName(): string
940
940
941
941
class PropertyName implements VariableLikeName {
942
942
public /* readonly */ Name $ class ;
943
- public /* readonly */ string $ property ;
943
+ private /* readonly */ string $ property ;
944
944
945
945
public function __construct (Name $ class , string $ property )
946
946
{
@@ -1148,25 +1148,25 @@ private function setRefcount(?string $refcount): void
1148
1148
1149
1149
class FuncInfo {
1150
1150
public /* readonly */ FunctionOrMethodName $ name ;
1151
- public /* readonly */ int $ classFlags ;
1151
+ private /* readonly */ int $ classFlags ;
1152
1152
public int $ flags ;
1153
1153
public /* readonly */ ?string $ aliasType ;
1154
1154
public ?FunctionOrMethodName $ alias ;
1155
- public /* readonly */ bool $ isDeprecated ;
1156
- public bool $ supportsCompileTimeEval ;
1155
+ private /* readonly */ bool $ isDeprecated ;
1156
+ private bool $ supportsCompileTimeEval ;
1157
1157
public /* readonly */ bool $ verify ;
1158
1158
/** @var ArgInfo[] */
1159
1159
public /* readonly */ array $ args ;
1160
1160
public /* readonly */ ReturnInfo $ return ;
1161
1161
public /* readonly */ int $ numRequiredArgs ;
1162
1162
public /* readonly */ ?string $ cond ;
1163
1163
public bool $ isUndocumentable ;
1164
- public ?int $ minimumPhpVersionIdCompatibility ;
1164
+ private ?int $ minimumPhpVersionIdCompatibility ;
1165
1165
/** @var AttributeInfo[] */
1166
1166
public array $ attributes ;
1167
1167
/** @var FramelessFunctionInfo[] */
1168
- public array $ framelessFunctionInfos ;
1169
- public ?ExposedDocComment $ exposedDocComment ;
1168
+ private array $ framelessFunctionInfos ;
1169
+ private ?ExposedDocComment $ exposedDocComment ;
1170
1170
1171
1171
/**
1172
1172
* @param ArgInfo[] $args
@@ -2274,11 +2274,11 @@ abstract class VariableLike
2274
2274
public int $flags;
2275
2275
public ?Type $type;
2276
2276
public /* readonly */ ?Type $phpDocType;
2277
- public /* readonly */ ?string $link;
2278
- public ?int $phpVersionIdMinimumCompatibility;
2277
+ private /* readonly */ ?string $link;
2278
+ protected ?int $phpVersionIdMinimumCompatibility;
2279
2279
/** @var AttributeInfo[] */
2280
2280
public array $attributes;
2281
- public /* readonly */ ?ExposedDocComment $exposedDocComment;
2281
+ protected /* readonly */ ?ExposedDocComment $exposedDocComment;
2282
2282
2283
2283
/**
2284
2284
* @var AttributeInfo[] $attributes
@@ -2456,12 +2456,12 @@ class ConstInfo extends VariableLike
2456
2456
{
2457
2457
public /* readonly */ AbstractConstName $name;
2458
2458
public /* readonly */ Expr $value;
2459
- public bool $isDeprecated;
2460
- public /* readonly */ ?string $valueString;
2459
+ private bool $isDeprecated;
2460
+ private /* readonly */ ?string $valueString;
2461
2461
public /* readonly */ ?string $cond;
2462
2462
public /* readonly */ ?string $cValue;
2463
2463
public /* readonly */ bool $isUndocumentable;
2464
- public /* readonly */ bool $isFileCacheAllowed;
2464
+ private /* readonly */ bool $isFileCacheAllowed;
2465
2465
2466
2466
/**
2467
2467
* @var AttributeInfo[] $attributes
@@ -2814,12 +2814,12 @@ protected function addModifiersToFieldSynopsis(DOMDocument $doc, DOMElement $fie
2814
2814
2815
2815
class PropertyInfo extends VariableLike
2816
2816
{
2817
- public /* readonly */ int $classFlags;
2817
+ private /* readonly */ int $classFlags;
2818
2818
public /* readonly */ PropertyName $name;
2819
- public /* readonly */ ?Expr $defaultValue;
2820
- public /* readonly */ ?string $defaultValueString;
2821
- public /* readonly */ bool $isDocReadonly;
2822
- public /* readonly */ bool $isVirtual;
2819
+ private /* readonly */ ?Expr $defaultValue;
2820
+ private /* readonly */ ?string $defaultValueString;
2821
+ private /* readonly */ bool $isDocReadonly;
2822
+ private /* readonly */ bool $isVirtual;
2823
2823
2824
2824
// Map possible variable names to the known string constant, see
2825
2825
// ZEND_KNOWN_STRINGS
@@ -3149,8 +3149,8 @@ public function __clone()
3149
3149
}
3150
3150
3151
3151
class EnumCaseInfo {
3152
- public /* readonly */ string $name;
3153
- public /* readonly */ ?Expr $value;
3152
+ private /* readonly */ string $name;
3153
+ private /* readonly */ ?Expr $value;
3154
3154
3155
3155
public function __construct(string $name, ?Expr $value) {
3156
3156
$this->name = $name;
@@ -3179,7 +3179,7 @@ public function getDeclaration(array $allConstInfos): string {
3179
3179
class AttributeInfo {
3180
3180
public /* readonly */ string $class;
3181
3181
/** @var \PhpParser\Node\Arg[] */
3182
- public /* readonly */ array $args;
3182
+ private /* readonly */ array $args;
3183
3183
3184
3184
/** @param \PhpParser\Node\Arg[] $args */
3185
3185
public function __construct(string $class, array $args) {
@@ -3234,25 +3234,25 @@ class ClassInfo {
3234
3234
public int $flags;
3235
3235
public string $type;
3236
3236
public /* readonly */ ?string $alias;
3237
- public /* readonly */ ?SimpleType $enumBackingType;
3238
- public /* readonly */ bool $isDeprecated;
3239
- public bool $isStrictProperties;
3237
+ private /* readonly */ ?SimpleType $enumBackingType;
3238
+ private /* readonly */ bool $isDeprecated;
3239
+ private bool $isStrictProperties;
3240
3240
/** @var AttributeInfo[] */
3241
3241
public array $attributes;
3242
- public ?ExposedDocComment $exposedDocComment;
3243
- public bool $isNotSerializable;
3242
+ private ?ExposedDocComment $exposedDocComment;
3243
+ private bool $isNotSerializable;
3244
3244
/** @var Name[] */
3245
3245
public /* readonly */ array $extends;
3246
3246
/** @var Name[] */
3247
3247
public /* readonly */ array $implements;
3248
3248
/** @var ConstInfo[] */
3249
3249
public /* readonly */ array $constInfos;
3250
3250
/** @var PropertyInfo[] */
3251
- public /* readonly */ array $propertyInfos;
3251
+ private /* readonly */ array $propertyInfos;
3252
3252
/** @var FuncInfo[] */
3253
3253
public array $funcInfos;
3254
3254
/** @var EnumCaseInfo[] */
3255
- public /* readonly */ array $enumCaseInfos;
3255
+ private /* readonly */ array $enumCaseInfos;
3256
3256
public /* readonly */ ?string $cond;
3257
3257
public ?int $phpVersionIdMinimumCompatibility;
3258
3258
public /* readonly */ bool $isUndocumentable;
0 commit comments