mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
gen_stub: further reduce the number of public properties
The following properties are made private: * `ArgInfo::$phpDocType` * `ClassInfo::$flags`, `::$attributes`, `::$extends`, `::$implements` * `FileInfo::$isUndocumentable` The following are made protected: * `VariableLike::$flags`
This commit is contained in:
parent
c89d7a7426
commit
05dbf0707a
1 changed files with 7 additions and 7 deletions
|
@ -775,7 +775,7 @@ class ArgInfo {
|
||||||
public /* readonly */ string $sendBy;
|
public /* readonly */ string $sendBy;
|
||||||
public /* readonly */ bool $isVariadic;
|
public /* readonly */ bool $isVariadic;
|
||||||
public ?Type $type;
|
public ?Type $type;
|
||||||
public /* readonly */ ?Type $phpDocType;
|
private /* readonly */ ?Type $phpDocType;
|
||||||
public ?string $defaultValue;
|
public ?string $defaultValue;
|
||||||
/** @var AttributeInfo[] */
|
/** @var AttributeInfo[] */
|
||||||
public array $attributes;
|
public array $attributes;
|
||||||
|
@ -2410,7 +2410,7 @@ class EvaluatedValue
|
||||||
|
|
||||||
abstract class VariableLike
|
abstract class VariableLike
|
||||||
{
|
{
|
||||||
public int $flags;
|
protected int $flags;
|
||||||
public ?Type $type;
|
public ?Type $type;
|
||||||
public /* readonly */ ?Type $phpDocType;
|
public /* readonly */ ?Type $phpDocType;
|
||||||
private /* readonly */ ?string $link;
|
private /* readonly */ ?string $link;
|
||||||
|
@ -3373,20 +3373,20 @@ class AttributeInfo {
|
||||||
|
|
||||||
class ClassInfo {
|
class ClassInfo {
|
||||||
public /* readonly */ Name $name;
|
public /* readonly */ Name $name;
|
||||||
public int $flags;
|
private int $flags;
|
||||||
public string $type;
|
public string $type;
|
||||||
public /* readonly */ ?string $alias;
|
public /* readonly */ ?string $alias;
|
||||||
private /* readonly */ ?SimpleType $enumBackingType;
|
private /* readonly */ ?SimpleType $enumBackingType;
|
||||||
private /* readonly */ bool $isDeprecated;
|
private /* readonly */ bool $isDeprecated;
|
||||||
private bool $isStrictProperties;
|
private bool $isStrictProperties;
|
||||||
/** @var AttributeInfo[] */
|
/** @var AttributeInfo[] */
|
||||||
public array $attributes;
|
private array $attributes;
|
||||||
private ?ExposedDocComment $exposedDocComment;
|
private ?ExposedDocComment $exposedDocComment;
|
||||||
private bool $isNotSerializable;
|
private bool $isNotSerializable;
|
||||||
/** @var Name[] */
|
/** @var Name[] */
|
||||||
public /* readonly */ array $extends;
|
private /* readonly */ array $extends;
|
||||||
/** @var Name[] */
|
/** @var Name[] */
|
||||||
public /* readonly */ array $implements;
|
private /* readonly */ array $implements;
|
||||||
/** @var ConstInfo[] */
|
/** @var ConstInfo[] */
|
||||||
public /* readonly */ array $constInfos;
|
public /* readonly */ array $constInfos;
|
||||||
/** @var PropertyInfo[] */
|
/** @var PropertyInfo[] */
|
||||||
|
@ -4186,7 +4186,7 @@ class FileInfo {
|
||||||
public bool $generateFunctionEntries = false;
|
public bool $generateFunctionEntries = false;
|
||||||
public string $declarationPrefix = "";
|
public string $declarationPrefix = "";
|
||||||
public bool $generateClassEntries = false;
|
public bool $generateClassEntries = false;
|
||||||
public bool $isUndocumentable = false;
|
private bool $isUndocumentable = false;
|
||||||
private bool $legacyArginfoGeneration = false;
|
private bool $legacyArginfoGeneration = false;
|
||||||
private ?int $minimumPhpVersionIdCompatibility = null;
|
private ?int $minimumPhpVersionIdCompatibility = null;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue