xref: /PHP-8.0/ext/spl/php_spl.stub.php (revision 68195bd4)
1<?php
2
3/** @generate-function-entries */
4
5/** @param object|string $object_or_class */
6function class_implements($object_or_class, bool $autoload = true): array|false {}
7
8/** @param object|string $object_or_class */
9function class_parents($object_or_class, bool $autoload = true): array|false {}
10
11/** @param object|string $object_or_class */
12function class_uses($object_or_class, bool $autoload = true): array|false {}
13
14function spl_autoload(string $class, ?string $file_extensions = null): void {}
15
16function spl_autoload_call(string $class): void {}
17
18function spl_autoload_extensions(?string $file_extensions = null): string {}
19
20function spl_autoload_functions(): array {}
21
22function spl_autoload_register(?callable $callback = null, bool $throw = true, bool $prepend = false): bool {}
23
24function spl_autoload_unregister(callable $callback): bool {}
25
26function spl_classes(): array {}
27
28function spl_object_hash(object $object): string {}
29
30function spl_object_id(object $object): int {}
31
32function iterator_apply(Traversable $iterator, callable $callback, ?array $args = null): int {}
33
34function iterator_count(Traversable $iterator): int {}
35
36function iterator_to_array(Traversable $iterator, bool $preserve_keys = true): array {}
37