summaryrefslogtreecommitdiff
path: root/ext/zend_test/test.stub.php
blob: d9db786cee0484eeb795cc16ae346c2b08c12247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php

/** @generate-function-entries static */

namespace {

interface _ZendTestInterface
{
}

/** @alias _ZendTestClassAlias */
class _ZendTestClass {
    public static function is_object(): int {}

    /** @deprecated */
    public function __toString(): string {}

    public function returnsStatic(): static {}
}

class _ZendTestChildClass extends _ZendTestClass
{
}

trait _ZendTestTrait {
    public function testMethod(): bool {}
}

final class ZendTestAttribute {

}

function zend_test_array_return(): array {}

function zend_test_nullable_array_return(): ?array {}

function zend_test_void_return(): void {}

/** @deprecated */
function zend_test_deprecated(mixed $arg = null): void {}

function zend_create_unterminated_string(string $str): string {}

function zend_terminate_string(string &$str): void {}

function zend_leak_variable(mixed $variable): void {}

function zend_leak_bytes(int $bytes = 3): void {}

function zend_string_or_object(object|string $param): object|string {}

function zend_string_or_object_or_null(object|string|null $param): object|string|null {}

/** @param stdClass|string $param */
function zend_string_or_stdclass($param): stdClass|string {}

/** @param stdClass|string|null $param */
function zend_string_or_stdclass_or_null($param): stdClass|string|null {}

function zend_iterable(iterable $arg1, ?iterable $arg2 = null): void {}

}

namespace ZendTestNS {

class Foo {
    public function method(): void {}
}

}

namespace ZendTestNS2 {

class Foo {
    public function method(): void {}
}

}

namespace ZendTestNS2\ZendSubNS {

function namespaced_func(): bool {}

}