php_spl.stub.php 1.5 KB

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