|
2 | 2 |
|
3 | 3 | /* ext/spl/php_spl.c */
|
4 | 4 |
|
5 |
| -function class_implements($what, bool $autoload = true) : array|false { } |
| 5 | +function class_implements($what, bool $autoload = true): array|false {} |
6 | 6 |
|
7 |
| -function class_parents($instance, bool $autoload = true) : array|false {} |
| 7 | +function class_parents($instance, bool $autoload = true): array|false {} |
8 | 8 |
|
9 |
| -function class_uses($what, bool $autoload = true) : array|false {} |
| 9 | +function class_uses($what, bool $autoload = true): array|false {} |
10 | 10 |
|
11 |
| -function spl_autoload(string $class_name, string $file_extensions = '.inc,.php') : void {} |
| 11 | +function spl_autoload(string $class_name, string $file_extensions = UNKNOWN): void {} |
12 | 12 |
|
13 | 13 | // This silently ignores non-string class names
|
14 |
| -function spl_autoload_call($class_name) : void {} |
| 14 | +function spl_autoload_call($class_name): void {} |
15 | 15 |
|
16 |
| -function spl_autoload_extensions(string $file_extensions = '') : string {} |
| 16 | +function spl_autoload_extensions(string $file_extensions = UNKNOWN): string {} |
17 | 17 |
|
18 |
| -function spl_autoload_functions() : array|false {} |
| 18 | +function spl_autoload_functions(): array|false {} |
19 | 19 |
|
20 |
| -function spl_autoload_register($autoload_function = null, bool $throw = true, bool $prepend = false) : bool {} |
| 20 | +function spl_autoload_register($autoload_function = null, bool $throw = true, bool $prepend = false): bool {} |
21 | 21 |
|
22 |
| -function spl_autoload_unregister($autoload_function) : bool {} |
| 22 | +function spl_autoload_unregister($autoload_function): bool {} |
23 | 23 |
|
24 |
| -function spl_classes() : array {} |
| 24 | +function spl_classes(): array {} |
25 | 25 |
|
26 |
| -function spl_object_hash(object $obj) : string {} |
| 26 | +function spl_object_hash(object $obj): string {} |
27 | 27 |
|
28 |
| -function spl_object_id(object $obj) : int {} |
| 28 | +function spl_object_id(object $obj): int {} |
29 | 29 |
|
30 | 30 | /* ext/spl/spl_iterators.c */
|
31 |
| -function iterator_apply(Traversable $iterator, $function, ?array $args = null) : int {} |
| 31 | +function iterator_apply(Traversable $iterator, callable $function, ?array $args = null): int {} |
32 | 32 |
|
33 |
| -function iterator_count(Traversable $iterator) : int {} |
| 33 | +function iterator_count(Traversable $iterator): int {} |
34 | 34 |
|
35 |
| -function iterator_to_array(Traversable $iterator, bool $use_keys = true) : array { } |
| 35 | +function iterator_to_array(Traversable $iterator, bool $use_keys = true): array {} |
0 commit comments