Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update stubs to latest PHP 8.4 RC1 #1678

Merged
merged 2 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Core/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -1130,3 +1130,13 @@ function gc_mem_caches(): int {}
*/
#[Pure(true)]
function get_resources(?string $type): array {}

/**
* @since 8.4
*/
function exit(string|int $status = 0): never {}

/**
* @since 8.4
*/
function die(string|int $status = 0): never {}
50 changes: 50 additions & 0 deletions Reflection/ReflectionClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ class ReflectionClass implements Reflector
*/
public const IS_READONLY = 65536;

/**
* @since 8.4
*/
public const int SKIP_INITIALIZATION_ON_SERIALIZE = 0;

/**
* @since 8.4
*/
public const int SKIP_DESTRUCTOR = 0;

/**
* Constructs a ReflectionClass
*
Expand Down Expand Up @@ -688,4 +698,44 @@ private function __clone(): void {}

#[PhpStormStubsElementAvailable('8.1')]
public function isEnum(): bool {}

/**
* @since 8.4
*/
public function newLazyGhost(callable $initializer, int $options = 0): object {}

/**
* @since 8.4
*/
public function newLazyProxy(callable $factory, int $options = 0): object {}

/**
* @since 8.4
*/
public function resetAsLazyGhost(object $object, callable $factory, int $options = 0): void {}

/**
* @since 8.4
*/
public function resetAsLazyProxy(object $object, callable $factory, int $options = 0): void {}

/**
* @since 8.4
*/
public function initializeLazyObject(object $object): object {}

/**
* @since 8.4
*/
public function isUninitializedLazyObject(object $object): bool {}

/**
* @since 8.4
*/
public function markLazyObjectAsInitialized(object $object): object {}

/**
* @since 8.4
*/
public function getLazyInitializer(object $object): ?callable {}
}
35 changes: 35 additions & 0 deletions Reflection/ReflectionProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ class ReflectionProperty implements Reflector
*/
public const IS_PRIVATE_SET = 4096;

/**
* @since 8.4
*/
public const IS_FINAL = 32;

/**
* Construct a ReflectionProperty object
*
Expand Down Expand Up @@ -386,11 +391,21 @@ public function isVirtual(): bool {}
*/
public function getSettableType(): ?ReflectionType {}

/**
* @since 8.4
*/
public function hasHooks(): bool {}

/**
* @since 8.4
*/
public function getHooks(): array {}

/**
* @since 8.4
*/
public function hasHook(PropertyHookType $type): bool {}

/**
* @since 8.4
*/
Expand All @@ -405,4 +420,24 @@ public function isPrivateSet(): bool {}
* @since 8.4
*/
public function isProtectedSet(): bool {}

/**
* @since 8.4
*/
public function setRawValueWithoutLazyInitialization(object $object, mixed $value): void {}

/**
* @since 8.4
*/
public function skipLazyInitialization(object $object): void {}

/**
* @since 8.4
*/
public function isDynamic(): bool {}

/**
* @since 8.4
*/
public function isFinal(): bool {}
}
5 changes: 5 additions & 0 deletions Zend OPcache/OPcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,8 @@ function opcache_get_configuration(): array|false {}
* @since 5.6
*/
function opcache_is_script_cached(string $filename): bool {}

/**
* @since 8.4
*/
function opcache_jit_blacklist(Closure $closure): void {}
Loading
Loading