Skip to content

Commit dc78e58

Browse files
committedJul 15, 2024
Update stubs
1 parent 4a2945f commit dc78e58

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed
 

‎Php8StubsMap.php

+1
Original file line numberDiff line numberDiff line change
@@ -2831,6 +2831,7 @@ public function __construct(int $phpVersionId)
28312831
'pg_result_memory_size' => 'stubs/ext/pgsql/pg_result_memory_size.php',
28322832
'pg_set_chunked_rows_size' => 'stubs/ext/pgsql/pg_set_chunked_rows_size.php',
28332833
'pg_socket_poll' => 'stubs/ext/pgsql/pg_socket_poll.php',
2834+
'propertyhooktype' => 'stubs/ext/reflection/PropertyHookType.php',
28342835
'request_parse_body' => 'stubs/ext/standard/request_parse_body.php',
28352836
'sodium_crypto_aead_aegis128l_decrypt' => 'stubs/ext/sodium/sodium_crypto_aead_aegis128l_decrypt.php',
28362837
'sodium_crypto_aead_aegis128l_encrypt' => 'stubs/ext/sodium/sodium_crypto_aead_aegis128l_encrypt.php',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
#[\Since('8.4')]
4+
enum PropertyHookType : string
5+
{
6+
case Get = 'get';
7+
case Set = 'set';
8+
}

‎stubs/ext/reflection/ReflectionProperty.php

+32
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ public function getValue(?object $object = null)
3939
public function setValue(mixed $objectOrValue, mixed $value = UNKNOWN)
4040
{
4141
}
42+
#[\Since('8.4')]
43+
public function getRawValue(object $object): mixed
44+
{
45+
}
46+
#[\Since('8.4')]
47+
public function setRawValue(object $object, mixed $value): void
48+
{
49+
}
4250
/**
4351
* @tentative-return-type
4452
* @return bool
@@ -85,6 +93,14 @@ public function isReadOnly(): bool
8593
public function isDefault()
8694
{
8795
}
96+
#[\Since('8.4')]
97+
public function isAbstract(): bool
98+
{
99+
}
100+
#[\Since('8.4')]
101+
public function isVirtual(): bool
102+
{
103+
}
88104
public function isPromoted(): bool
89105
{
90106
}
@@ -123,6 +139,10 @@ public function setAccessible(bool $accessible)
123139
public function getType()
124140
{
125141
}
142+
#[\Since('8.4')]
143+
public function getSettableType(): ?ReflectionType
144+
{
145+
}
126146
/**
127147
* @tentative-return-type
128148
* @return bool
@@ -144,6 +164,15 @@ public function getDefaultValue()
144164
public function getAttributes(?string $name = null, int $flags = 0): array
145165
{
146166
}
167+
/** @return array<string, ReflectionMethod> */
168+
#[\Since('8.4')]
169+
public function getHooks(): array
170+
{
171+
}
172+
#[\Since('8.4')]
173+
public function getHook(PropertyHookType $type): ?ReflectionMethod
174+
{
175+
}
147176
/**
148177
* @var int
149178
* @cvalue ZEND_ACC_STATIC
@@ -194,4 +223,7 @@ public function getAttributes(?string $name = null, int $flags = 0): array
194223
/** @cvalue ZEND_ACC_PRIVATE */
195224
#[\Since('8.4')]
196225
public const int IS_PRIVATE = UNKNOWN;
226+
/** @cvalue ZEND_ACC_ABSTRACT */
227+
#[\Since('8.4')]
228+
public const int IS_ABSTRACT = UNKNOWN;
197229
}

0 commit comments

Comments
 (0)