1<?php 2 3/** @generate-function-entries static */ 4 5namespace { 6 7interface _ZendTestInterface 8{ 9} 10 11/** @alias _ZendTestClassAlias */ 12class _ZendTestClass { 13 public static function is_object(): int {} 14 15 /** 16 * @deprecated 17 * @return string 18 */ 19 public function __toString() {} 20 21 public function returnsStatic(): static {} 22} 23 24class _ZendTestChildClass extends _ZendTestClass 25{ 26} 27 28trait _ZendTestTrait { 29 public function testMethod(): bool {} 30} 31 32final class ZendTestAttribute { 33 34} 35 36function zend_test_array_return(): array {} 37 38function zend_test_nullable_array_return(): ?array {} 39 40function zend_test_void_return(): void {} 41 42/** @deprecated */ 43function zend_test_deprecated(mixed $arg = null): void {} 44 45function zend_create_unterminated_string(string $str): string {} 46 47function zend_terminate_string(string &$str): void {} 48 49function zend_leak_variable(mixed $variable): void {} 50 51function zend_leak_bytes(int $bytes = 3): void {} 52 53function zend_string_or_object(object|string $param): object|string {} 54 55function zend_string_or_object_or_null(object|string|null $param): object|string|null {} 56 57/** @param stdClass|string $param */ 58function zend_string_or_stdclass($param): stdClass|string {} 59 60/** @param stdClass|string|null $param */ 61function zend_string_or_stdclass_or_null($param): stdClass|string|null {} 62 63function zend_iterable(iterable $arg1, ?iterable $arg2 = null): void {} 64 65function zend_weakmap_attach(object $object, mixed $value): bool {} 66function zend_weakmap_remove(object $object): bool {} 67function zend_weakmap_dump(): array {} 68 69function zend_get_current_func_name(): string {} 70 71#if defined(HAVE_LIBXML) && !defined(PHP_WIN32) 72function zend_test_override_libxml_global_state(): void {} 73#endif 74 75} 76 77namespace ZendTestNS { 78 79class Foo { 80 public function method(): void {} 81} 82 83} 84 85namespace ZendTestNS2 { 86 87class Foo { 88 public function method(): void {} 89} 90 91} 92 93namespace ZendTestNS2\ZendSubNS { 94 95function namespaced_func(): bool {} 96 97} 98